mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-08 08: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
|
setButtonGrab True otherw
|
||||||
io $ setWindowBorder dpy otherw (color_pixel nbc)
|
io $ setWindowBorder dpy otherw (color_pixel nbc)
|
||||||
|
|
||||||
whenX (not `liftM` isRoot w) $ do
|
-- If we ungrab buttons on the root window, we lose our mouse bindings.
|
||||||
io $ do setInputFocus dpy w revertToPointerRoot 0
|
whenX (not `liftM` isRoot w) $ setButtonGrab False w
|
||||||
-- raiseWindow dpy w
|
io $ do setInputFocus dpy w revertToPointerRoot 0
|
||||||
setButtonGrab False w
|
-- raiseWindow dpy w
|
||||||
io $ setWindowBorder dpy w (color_pixel fbc)
|
io $ setWindowBorder dpy w (color_pixel fbc)
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Managing layout
|
-- Managing layout
|
||||||
|
Reference in New Issue
Block a user