def view(workspace, focusing=True): global _current, __visible, __hidden if workspace not in state.workspaces.values() or workspace == _current: return False old = _current _current = workspace old.replace(_current) if focusing: focus.fallback() return True
def unmapped(self, light=False): icccm.set_wm_state(state.conn, self.win.id, icccm.State.Iconic, 0) fallback = focus.focused() is self self.frame.unmap() self.mapped = False self.update_struts() if not light: if fallback: focus.fallback() self.workspace.hide_client(self) state.conn.flush()