Пример #1
0
    def cmd_toggle_decorations(self):
        self.decor = not self.decor

        if self.decor:
            self.borders_remove()
        else:
            self.borders_add()

        Container.manage_focus(self.monitor.get_active())
Пример #2
0
def update_NET_ACTIVE_WINDOW():
    global properties

    active = ptxcb.XROOT.get_active_window()

    if not active:
        return

    set_active(active)

    properties["_NET_ACTIVE_WINDOW"] = get_active()

    active = get_active()
    if active and active.monitor:
        active.monitor.active = active

    Container.manage_focus(active)