def map(self): if self.mapped: return icccm.set_wm_state(state.conn, self.win.id, icccm.State.Normal, 0) if self.is_focusable(): focus.add(self) layers.default.add(self) self.stack_raise() self.iconified = False self.workspace.assign_layout(self) # START GRAB state.grab() self.win.map() self.frame.map() self.focus() state.ungrab() # END GRAB self.initial_map = True self.mapped = True self.update_struts()
def maplight(self): assert self.initial_map, 'a full map must be issued before maplight' if self.mapped or self.iconified: return icccm.set_wm_state(state.conn, self.win.id, icccm.State.Normal, 0) # START GRAB state.grab() self.win.map() self.frame.map() state.ungrab() # END GRAB self.mapped = True self.update_struts()
def maplight(self): """ Mapping a docked client is similar to mapping a normal client, except it is not included in the focus stack. Also, it is added to the "dock" layer, where it will typically reside above most other clients. """ if self.mapped: return icccm.set_wm_state(state.conn, self.win.id, icccm.State.Normal, 0) # START GRAB state.grab() self.win.map() state.ungrab() # END GRAB self.initial_map = True self.mapped = True self.update_struts()