From 7762ac0173b860af83e58d56409f9cf0fa7252e9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:13:21 +0200 Subject: [PATCH] toplevelexport: ignore defunct windows --- src/protocols/ToplevelExport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index 53dc3795..180b1489 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -311,9 +311,8 @@ void CToplevelExportProtocolManager::onMonitorRender(CMonitor* pMonitor) { } void CToplevelExportProtocolManager::shareFrame(SScreencopyFrame* frame) { - if (!frame->buffer) { + if (!frame->buffer || !g_pCompositor->windowValidMapped(frame->pWindow)) return; - } // TODO: damage