xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #532: resize-from-idle.patch

File resize-from-idle.patch, 1.2 KB (added by Antoine Martin, 7 years ago)

do all the resize work from idle_add

  • xpra/x11/gtk_x11/window.py

     
    10651065        log("WindowModel.do_xpra_configure_event(%s)", event)
    10661066        if not self._managed:
    10671067            return
    1068         BaseWindowModel.do_xpra_configure_event(self, event)
    10691068        if self.corral_window is None or not self.corral_window.is_visible():
    10701069            return
    10711070        if self.client_window is None or not self.client_window.is_visible():
    10721071            return
    10731072        try:
    1074             #workaround applications whose windows disappear from underneath us:
    1075             if trap.call_synced(self.resize_corral_window):
    1076                 self.notify("geometry")
     1073            def may_resize():
     1074                BaseWindowModel.do_xpra_configure_event(self, event)
     1075                #workaround applications whose windows disappear from underneath us:
     1076                if trap.call_synced(self.resize_corral_window):
     1077                    self.notify("geometry")
     1078            gobject.idle_add(may_resize)
    10771079        except XError, e:
    10781080            log.warn("failed to resize corral window: %s", e)
    10791081