Skip to content

Commit

Permalink
fix: Update for qtile v0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwrigh committed Oct 5, 2023
1 parent 9ae4bdc commit cbe487d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plasma/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def info(self):

def clone(self, group):
clone = copy.copy(self)
clone.group = group
clone._group = group
clone.root = Node(None, *self.default_dimensions)
clone.focused = None
clone.add_mode = None
return clone

def add(self, client):
def add_client(self, client):
node = self.root if self.focused_node is None else self.focused_node
new = Node(client)
try:
Expand Down Expand Up @@ -126,11 +126,11 @@ def focus_node(self, node):
def refocus(self):
self.group.focus(self.focused)

def cmd_next(self):
def next(self):
"""Focus next window."""
self.focus_node(self.focused_node.next_leaf)

def cmd_previous(self):
def previous(self):
"""Focus previous window."""
self.focus_node(self.focused_node.prev_leaf)

Expand Down

0 comments on commit cbe487d

Please sign in to comment.