Skip to content

Commit

Permalink
[X11] Bring windows activated by pager to front
Browse files Browse the repository at this point in the history
Qtile follows spec for stacking windows. However, this spec itself doesn't provide a way for window switcher to change the stacking order.
That's why most EWMH-compatible WMs in response to _NET_ACTIVE_WINDOW not only change focus, but also raise the window to the top of the stack.

Qtile already has code for handling activation by a pager so we can just
add code to bring the window to the front.

Closes #4670
  • Loading branch information
elParaguayo committed Jan 28, 2024
1 parent f2f7777 commit a54cad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libqtile/backend/x11/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,7 @@ def handle_ClientMessage(self, event): # noqa: N802
logger.debug("Focusing window by pager")
self.qtile.current_screen.set_group(self.group)
self.group.focus(self)
self.bring_to_front()
else: # XCB_EWMH_CLIENT_SOURCE_TYPE_OTHER
focus_behavior = self.qtile.config.focus_on_window_activation
if focus_behavior == "focus":
Expand Down

0 comments on commit a54cad9

Please sign in to comment.