xpra icon
Bug tracker and wiki

Ticket #874: throttle-iconified-windows.patch

File throttle-iconified-windows.patch, 1.3 KB (added by Antoine Martin, 5 years ago)

this works - just needs guarding against no_idle called when still iconified

  • xpra/server/window_source.py

     
    140140        self.scaling_control = default_encoding_options.intget("scaling.control", 1)    #ServerSource sets defaults with the client's scaling.control value
    141141        self.scaling = None
    142142        self.maximized = False          #set by the client!
     143        self.iconic = False
     144        if "iconic" in window.get_dynamic_property_names():
     145            self.iconic = window.get_property("iconic")
     146            window.connect("notify::iconic", self._iconic_changed)
    143147        if "fullscreen" in window.get_dynamic_property_names():
    144148            window.connect("notify::fullscreen", self._fullscreen_changed)
    145149
     
    515519        log("window fullscreen state changed: %s", self.fullscreen)
    516520        self.reconfigure(True)
    517521
     522    def _iconic_changed(self, window, *args):
     523        self.iconic = window.get_property("iconic")
     524        if self.iconic:
     525            self.go_idle()
     526        else:
     527            self.no_idle()
     528
    518529    def set_client_properties(self, properties):
    519530        #filter out stuff we don't care about
    520531        #to see if there is anything to set at all,