コード例 #1
0
ファイル: client.py プロジェクト: sahwar/pyndow
    def focused(self):
        # If this client's workspace is not the current workspace,
        # then change to this client's workspace.
        if self.workspace is not None and workspace.current(
        ) != self.workspace:
            workspace.view(self.workspace, focusing=False)
            self.stack_raise()

        if self.workspace is not None:
            self.workspace.focused()
            self.workspace.get_layout(self).focused(self)
        else:
            workspace.determine_focus()

        focus.above(self)
        self.attention_stop()
        # self.frame.set_state(frame.State.Active)

        for client in focus.get_stack()[:-1]:
            client.unfocused()
コード例 #2
0
ファイル: __init__.py プロジェクト: BurntSushi/pyndow
 def clients(self):
     for client in focus.get_stack():
         if client.workspace == self.workspace and not client.iconified:
             if client.layout() == self:
                 yield client
コード例 #3
0
 def clients(self):
     for client in focus.get_stack():
         if client.workspace == self.workspace and not client.iconified:
             if client.layout() == self:
                 yield client
コード例 #4
0
ファイル: cycle.py プロジェクト: sahwar/pyndow
 def set_window_list(self):
     self.wins = focus.get_stack()
     self.wins.reverse()