def __init__(self, wid): Client.__init__(self, wid) self.catchall = False # Temp self.maximized = False # Temp self.iconified = False x, y = self.win.geom['x'], self.win.geom['y'] self.frame = self.get_frame()(self) self.frame.configure_client(x=x, y=y) workspace.current().add(self)
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 fallbackable(c): return (c.mapped and (c.workspace is None or workspace.current() == c.workspace))