(self, screen)
return window
Get the current active window.
Get the current active window.
Get the current active window .
def _get_active_window(self, screen):
        """ Get the current active window. """
        window = screen.get_active_window()
        if not screen.supports_net_wm_hint(Gdk.atom_intern('_NET_ACTIVE_WINDOW', True)): return None
        if not screen.supports_net_wm_hint(Gdk.atom_intern('_NET_WM_WINDOW_TYPE', True)): return None
        if window.get_type_hint().value_name == 'GDK_WINDOW_TYPE_HINT_DESKTOP': return None
        return window
def _get_active_window ( self , screen ) : window = screen . get_active_window ( ) if not screen . supports_net_wm_hint ( Gdk . atom_intern ( '_NET_ACTIVE_WINDOW' , True ) ) : return None if not screen . supports_net_wm_hint ( Gdk . atom_intern ( '_NET_WM_WINDOW_TYPE' , True ) ) : return None if window . get_type_hint ( ) . value_name == 'GDK_WINDOW_TYPE_HINT_DESKTOP' : return None return window