def __init__(self, root, resize_exact=False): WindowDamageHandler.__init__(self, root) WindowModelStub.__init__(self) self.root_prop_watcher = XRootPropWatcher(["WINDOW_MANAGER", "_NET_SUPPORTING_WM_CHECK"], root) self.root_prop_watcher.connect("root-prop-changed", self.root_prop_changed) self.update_icon() self.resize_exact = resize_exact
def unmanage(self, exiting=False): WindowDamageHandler.destroy(self) WindowModelStub.unmanage(self, exiting) self._managed = False rpw = self.root_prop_watcher if rpw: self.root_prop_watcher = None rpw.cleanup()