Skip to content

Commit 41ba7fd

Browse files
committed
X.H.EwmhDesktops: Fix _NET_ACTIVE_WINDOW requests from pagers being ignored
This makes window switching apps like rofi and alttab able to activate windows even if the logHook doesn't activate them (which it doesn't by default, and that's a regression). Fixes: 45052b9 ("X.H.EwmhDesktops. run 'logHook' for activated window.") Related: #396 Related: #110 Related: #192
1 parent 82ecde8 commit 41ba7fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

XMonad/Hooks/EwmhDesktops.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ handle f ClientMessageEvent{ev_window = w, ev_message_type = mt, ev_data = d} =
265265
windows $ W.shiftWin (W.tag ww) w
266266
| mt == a_d ->
267267
trace $ "Bad _NET_WM_DESKTOP with data=" ++ show d
268+
| mt == a_aw, 2 : _ <- d ->
269+
-- when the request comes from a pager, honor it unconditionally
270+
-- https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#sourceindication
271+
windows $ W.focusWindow w
268272
| mt == a_aw -> do
269273
lh <- asks (logHook . config)
270274
XS.put (NetActivated (Just w))

0 commit comments

Comments
 (0)