def cmd_tile(self): Tile.cmd_tile(self) if not self.root: self.root = LeafFrame(self, None, Container(self)) active = self.monitor.get_active() if active: self.add(active) for win in self.monitor.iter_windows(): if win != active: self.add(win) else: self.promote() for child in self.root.childs(): if child.cont.empty and not child.cont.win: child.cont.set_window(force=True) self.root.moveresize( self.monitor.wa_x, self.monitor.wa_y, self.monitor.wa_width, self.monitor.wa_height ) for win in self.iter_hidden(): win.set_below(True) for child in self.root.childs(): child.cont.window_below(False) child.reset_cycle()
def cmd_tile(self): Tile.cmd_tile(self) if not self.store: self.store = AutoStore() if self.store.empty(): active = self.monitor.get_active() if active: self.add(active) for win in self.monitor.iter_windows(): if win != active: self.add(win)