ghc-xmonad-contrib/xmonad-contrib-0.17.0-ewmh-set-NET_WM_STATE.patch
Iurii Mykhalskyi 48b2229150 xmonad-contrib: Update patches after migration to new version
Also, patch names has been updated to show respective
xmonad-contib version

Signed-off-by: Iurii Mykhalskyi <yriy.pma@gmail.com>
2022-06-03 23:26:43 +03:00

16 lines
631 B
Diff

diff --git a/XMonad/Hooks/EwmhDesktops.hs b/XMonad/Hooks/EwmhDesktops.hs
index f6dd58ec..91409931 100644
--- a/XMonad/Hooks/EwmhDesktops.hs
+++ b/XMonad/Hooks/EwmhDesktops.hs
@@ -460,6 +460,10 @@ setActiveWindow w = withDisplay $ \dpy -> do
r <- asks theRoot
a <- getAtom "_NET_ACTIVE_WINDOW"
io $ changeProperty32 dpy r a wINDOW propModeReplace [fromIntegral w]
+ -- init _NET_WM_STATE to prevent gtk3 making apps look unfocused
+ a' <- getAtom "_NET_WM_STATE"
+ c' <- getAtom "ATOM"
+ io $ changeProperty32 dpy w a' c' propModeAppend []
setSupported :: X ()
setSupported = withDisplay $ \dpy -> do