mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-07 23:51:52 -07:00
only grab button{1,2,3} for click-to-focus (scrollwheel shouldn't focus)
This commit is contained in:
@@ -244,8 +244,9 @@ rescreen = do
|
|||||||
setButtonGrab :: Bool -> Window -> X ()
|
setButtonGrab :: Bool -> Window -> X ()
|
||||||
setButtonGrab grab w = withDisplay $ \d -> io $
|
setButtonGrab grab w = withDisplay $ \d -> io $
|
||||||
if grab
|
if grab
|
||||||
then grabButton d anyButton anyModifier w False buttonPressMask
|
then flip mapM_ [button1, button2, button3] $ \b ->
|
||||||
grabModeAsync grabModeSync none none
|
grabButton d b anyModifier w False buttonPressMask
|
||||||
|
grabModeAsync grabModeSync none none
|
||||||
else ungrabButton d anyButton anyModifier w
|
else ungrabButton d anyButton anyModifier w
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user