Skip to content

Commit

Permalink
Stop windows floating if not focused when added to group
Browse files Browse the repository at this point in the history
  • Loading branch information
elParaguayo committed Oct 25, 2024
1 parent 0d8e521 commit fc735e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libqtile/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ def add(self, win, focus=True, force=False):
self.tiled_windows.add(win)
for i in self.layouts:
i.add_client(win)
if focus:
if focus or not self.current_window:
self.focus(win, warp=True, force=force)
elif self.current_window:
self.focus(self.current_window, warp=False)

def remove(self, win, force=False):
self.windows.remove(win)
Expand Down

0 comments on commit fc735e9

Please sign in to comment.