예제 #1
0
    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()
예제 #2
0
    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()
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
파일: client.py 프로젝트: hmusta/pytyle3
 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)
예제 #6
0
파일: client.py 프로젝트: hmusta/pytyle3
 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)