mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-07 07:31:51 -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 grab w = withDisplay $ \d -> io $
|
||||
if grab
|
||||
then grabButton d anyButton anyModifier w False buttonPressMask
|
||||
grabModeAsync grabModeSync none none
|
||||
then flip mapM_ [button1, button2, button3] $ \b ->
|
||||
grabButton d b anyModifier w False buttonPressMask
|
||||
grabModeAsync grabModeSync none none
|
||||
else ungrabButton d anyButton anyModifier w
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user