toplevelexport: ignore defunct windows

This commit is contained in:
vaxerski 2023-06-13 20:13:21 +02:00
parent e8c6d0f51e
commit 7762ac0173

View file

@ -311,9 +311,8 @@ void CToplevelExportProtocolManager::onMonitorRender(CMonitor* pMonitor) {
} }
void CToplevelExportProtocolManager::shareFrame(SScreencopyFrame* frame) { void CToplevelExportProtocolManager::shareFrame(SScreencopyFrame* frame) {
if (!frame->buffer) { if (!frame->buffer || !g_pCompositor->windowValidMapped(frame->pWindow))
return; return;
}
// TODO: damage // TODO: damage