Skip to content

Commit

Permalink
#3537 forward port d0d2bae
Browse files Browse the repository at this point in the history
don't update the client geometry of a window which is not shown
  • Loading branch information
totaam committed May 9, 2022
1 parent fabfc1b commit 8d3f1f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xpra/x11/models/window.py
Expand Up @@ -669,7 +669,8 @@ def update_size_constraints(self, minw=0, minh=0, maxw=MAX_WINDOW_SIZE, maxh=MAX
geomlog("update_size_constraints%s less restrictive, no need to recalculate", (minw, minh, maxw, maxh))
return
geomlog("update_size_constraints%s recalculating client geometry", (minw, minh, maxw, maxh))
self._update_client_geometry()
if self.get_property("shown"):
self._update_client_geometry()

#########################################
# X11 properties synced to Python objects
Expand Down Expand Up @@ -758,7 +759,7 @@ def _handle_wm_normal_hints_change(self):
# reduces the chance for us to get caught in loops:
if self._updateprop("size-hints", hints):
metalog("updated: size-hints=%s", hints)
if self._setup_done:
if self._setup_done and self.get_property("shown"):
self._update_client_geometry()


Expand Down

0 comments on commit 8d3f1f9

Please sign in to comment.