Skip to content

Commit

Permalink
X.H.EwmhDesktops: Fix _NET_ACTIVE_WINDOW requests from pagers being i…
Browse files Browse the repository at this point in the history
…gnored

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: xmonad#396
Related: xmonad#110
Related: xmonad#192
  • Loading branch information
liskin authored and TheMC47 committed May 21, 2021
1 parent 5f14db5 commit e708387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions XMonad/Hooks/EwmhDesktops.hs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ handle f ClientMessageEvent{ev_window = w, ev_message_type = mt, ev_data = d} =
windows $ W.shiftWin (W.tag ww) w
| mt == a_d ->
trace $ "Bad _NET_WM_DESKTOP with data=" ++ show d
| mt == a_aw, 2 : _ <- d ->
-- when the request comes from a pager, honor it unconditionally
-- https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#sourceindication
windows $ W.focusWindow w
| mt == a_aw -> do
lh <- asks (logHook . config)
XS.put (NetActivated (Just w))
Expand Down

0 comments on commit e708387

Please sign in to comment.