(self, data=None)
Handle a request to hide/show the window
Handle a request to hide/show the window
Handle a request to hide / show the window
def on_hide_window(self, data=None):
        """Handle a request to hide/show the window"""

        if not self.isDestroyed:
            if not self.get_property('visible'):
                #Don't show if window has just been hidden because of
                #lost focus
                if (time.time() - self.losefocus_time < 0.1) and \
                    self.config['hide_on_lose_focus']:
                    return
                if self.position:
                    self.move(self.position[0], self.position[1])
                self.show()
                self.grab_focus()
                try:
                    t = GdkX11.x11_get_server_time(self.get_window())
                except (TypeError, AttributeError):
                    t = 0
                self.get_window().focus(t)
            else:
                self.position = self.get_position()
                self.hidefunc()
def on_hide_window ( self , data = None ) : if not self . isDestroyed : if not self . get_property ( 'visible' ) : #Don't show if window has just been hidden because of #lost focus if ( time . time ( ) - self . losefocus_time < 0.1 ) and self . config [ 'hide_on_lose_focus' ] : return if self . position : self . move ( self . position [ 0 ] , self . position [ 1 ] ) self . show ( ) self . grab_focus ( ) try : t = GdkX11 . x11_get_server_time ( self . get_window ( ) ) except ( TypeError , AttributeError ) : t = 0 self . get_window ( ) . focus ( t ) else : self . position = self . get_position ( ) self . hidefunc ( )