Skip to content

Commit

Permalink
fix(layout): ensure we retain focus during merge_tabs() where dest is…
Browse files Browse the repository at this point in the history
… a background tab
  • Loading branch information
aravinda0 committed May 4, 2024
1 parent cd077d8 commit 6a904b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qtile_bonsai/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,11 @@ def merge_tabs(self, direction: Direction1DParam, axis: AxisParam = Axis.x):

if src is not dest and dest is not None:
self._tree.merge_tabs(src, dest, axis)

# Need to re-focus pane after it gets hidden behind dest, which was a
# background tab.
self._request_focus(self.focused_pane)

self._request_relayout()

@expose_command
Expand Down

0 comments on commit 6a904b9

Please sign in to comment.