From 05ae985150c0e99b09ca1885da6088ef56914fcc Mon Sep 17 00:00:00 2001 From: totaam Date: Thu, 16 Dec 2021 11:45:18 +0700 Subject: [PATCH] window may have been closed already --- xpra/client/mixins/window_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpra/client/mixins/window_manager.py b/xpra/client/mixins/window_manager.py index cc563e7305..c210ac836c 100644 --- a/xpra/client/mixins/window_manager.py +++ b/xpra/client/mixins/window_manager.py @@ -1090,14 +1090,15 @@ def _process_restack_window(self, packet): def _process_configure_override_redirect(self, packet): wid, x, y, w, h = packet[1:6] - window = self._id_to_window[wid] + window = self._id_to_window.get(wid) ax = self.sx(x) ay = self.sy(y) aw = max(1, self.sx(w)) ah = max(1, self.sy(h)) geomlog("_process_configure_override_redirect%s move resize window %s (id=%s) to %s", packet[1:], window, wid, (ax,ay,aw,ah)) - window.move_resize(ax, ay, aw, ah, -1) + if window: + window.move_resize(ax, ay, aw, ah, -1) def window_close_event(self, wid):