
3 Feb
2010
3 Feb
'10
11:05 a.m.
The attached patch does what I want. It only sets the input focus when the window needs it: hunk ./XMonad/Operations.hs 330 -- If we ungrab buttons on the root window, we lose our mouse bindings. whenX (not <$> isRoot w) $ setButtonGrab False w - io $ do setInputFocus dpy w revertToPointerRoot 0 + io $ do needsInput <- liftM wmh_input $ getWMHints dpy w + when needsInput $ setInputFocus dpy w revertToPointerRoot 0 -- raiseWindow dpy w Can anybody review this? Also see: http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-hints.html regards, Bas