Skip to content

Commit

Permalink
#3938 until we reparent, update the client window directly
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 12, 2024
1 parent c46337b commit b539550
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions xpra/x11/models/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,16 @@ 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:
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)
if self.corral_xid:
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)
else:
X11Window.sendConfigureNotify(self.xid)
# corral window hasn't been created yet
X11Window.configureAndNotify(self.xid, x, y, w, h)
self._updateprop("geometry", (x, y, w, h))

def do_xpra_configure_event(self, event) -> None:
Expand Down

0 comments on commit b539550

Please sign in to comment.