Skip to content

Commit

Permalink
#3938 avoid unnecessary configure event
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 8, 2024
1 parent bcf1ba6 commit 64be89e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xpra/x11/models/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,13 @@ def _do_update_client_geometry(self, geometry) -> None:
w, h = self.calc_constrained_size(allocated_w, allocated_h, hints)
geomlog("_do_update_client_geometry: size(%s)=%ix%i", hints, w, h)
with xlog:
X11Window.MoveResizeWindow(self.corral_xid, x, y, w, h)
cx, cy, cw, ch = X11Window.getGeometry(self.corral_xid)[:4]
if cx != x or cy != y or cw != w or ch != h:
X11Window.MoveResizeWindow(self.corral_xid, x, y, w, h)
X11Window.configureAndNotify(self.xid, 0, 0, w, h)
else:
X11Window.sendConfigureNotify(self.xid)
self._updateprop("geometry", (x, y, w, h))
X11Window.configureAndNotify(self.xid, 0, 0, w, h)

def do_xpra_configure_event(self, event) -> None:
geomlog("WindowModel.do_xpra_configure_event(%s) corral=%#x, client=%#x, managed=%s",
Expand Down

0 comments on commit 64be89e

Please sign in to comment.