def handle_unmap_event(self, evt): ''' This method handles both DestroyNotify and UnmapNotify because they both seem to indicate the same thing: We no longer need this window. ''' event.disconnect('DestroyNotify', evt.window) event.disconnect('UnmapNotify', evt.window) win = self.win_store.get_window(evt.window) self.win_store.remove(win) self.current_workspace.update()
def remove(self): tile.update_client_removal(self) debug('Disconnecting from %s' % self) event.disconnect('ConfigureNotify', self.parentid) event.disconnect('PropertyNotify', self.wid) event.disconnect('FocusIn', self.wid) event.disconnect('FocusOut', self.wid)
def remove(self): tile.update_client_removal(self) debug("Disconnecting from %s" % self) event.disconnect("ConfigureNotify", self.parentid) event.disconnect("PropertyNotify", self.wid) event.disconnect("FocusIn", self.wid) event.disconnect("FocusOut", self.wid) debug("Disconnect done %s" % self)
def remove(self): if config.tiles_below and not self.floating: ewmh.request_wm_state_checked(self.wid, 0, util.get_atom("_NET_WM_STATE_BELOW")).check() tile.update_client_removal(self) debug("Disconnecting from %s" % self) event.disconnect("ConfigureNotify", self.parentid) event.disconnect("PropertyNotify", self.wid) event.disconnect("FocusIn", self.wid) event.disconnect("FocusOut", self.wid)
def remove(self): if config.tiles_below and not self.floating: ewmh.request_wm_state_checked( self.wid, 0, util.get_atom('_NET_WM_STATE_BELOW')).check() tile.update_client_removal(self) debug('Disconnecting from %s' % self) event.disconnect('ConfigureNotify', self.parentid) event.disconnect('PropertyNotify', self.wid) event.disconnect('FocusIn', self.wid) event.disconnect('FocusOut', self.wid)