mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-31 04:01:52 -07:00
prevent keyboard focus from getting lost in some cases
This commit is contained in:
@@ -322,11 +322,11 @@ setFocusX w = withWindowSet $ \ws -> do
|
||||
setButtonGrab True otherw
|
||||
io $ setWindowBorder dpy otherw (color_pixel nbc)
|
||||
|
||||
whenX (not `liftM` isRoot w) $ do
|
||||
io $ do setInputFocus dpy w revertToPointerRoot 0
|
||||
-- raiseWindow dpy w
|
||||
setButtonGrab False w
|
||||
io $ setWindowBorder dpy w (color_pixel fbc)
|
||||
-- If we ungrab buttons on the root window, we lose our mouse bindings.
|
||||
whenX (not `liftM` isRoot w) $ setButtonGrab False w
|
||||
io $ do setInputFocus dpy w revertToPointerRoot 0
|
||||
-- raiseWindow dpy w
|
||||
io $ setWindowBorder dpy w (color_pixel fbc)
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Managing layout
|
||||
|
Reference in New Issue
Block a user