Skip to content

Commit

Permalink
window may have been closed already
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 16, 2021
1 parent 8d8690c commit 05ae985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xpra/client/mixins/window_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 05ae985

Please sign in to comment.