From a5130a4c65e7429fa7633f449a5944eac205261b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 1 Jun 2024 19:04:59 +0700 Subject: [PATCH] don't clear damage when the window is not managed the gstreamer encoder can end up calling 'gstreamer_continue_damage' via a timer, after we've stopped managing the window, which triggers the 'composite window destroyed outside the UI thread' warning --- xpra/x11/models/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpra/x11/models/core.py b/xpra/x11/models/core.py index 0940126254..6734b852e2 100644 --- a/xpra/x11/models/core.py +++ b/xpra/x11/models/core.py @@ -407,6 +407,8 @@ def do_unmanaged(self, wm_exiting) -> None: ######################################### def acknowledge_changes(self) -> None: + if not self._managed: + return c = self._composite if not c: raise RuntimeError("composite window destroyed outside the UI thread?")