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()
def clients(self): for client in focus.get_stack(): if client.workspace == self.workspace and not client.iconified: if client.layout() == self: yield client
def set_window_list(self): self.wins = focus.get_stack() self.wins.reverse()