Skip to content

Commit

Permalink
[x11] Fix focus event on Window.focus()
Browse files Browse the repository at this point in the history
When calling `Window.focus()` the borders did not update on the focused
window and the `WindowName` widget did not reflect the change.

Fixes qtile#3751
  • Loading branch information
elParaguayo committed Nov 19, 2023
1 parent 5203110 commit 97a66ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libqtile/backend/x11/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,12 +1327,12 @@ def focus(self, warp: bool = True) -> None:
self.qtile.core._root.set_property("_NET_ACTIVE_WINDOW", self.window.wid)
self._ungrab_click()

if self.group:
self.group.current_window = self

# Check if we need to restack a previously focused fullscreen window
self.qtile.core.check_stacking(self)

if self.group and self.group.current_window is not self:
self.group.focus(self)

hook.fire("client_focus", self)

@expose_command()
Expand Down

0 comments on commit 97a66ef

Please sign in to comment.