mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 04:31:53 -07:00
ignore numlock/capslock on mouse bindings
This commit is contained in:
3
Main.hs
3
Main.hs
@@ -106,8 +106,7 @@ grabKeys dpy rootw = do
|
||||
kc <- keysymToKeycode dpy sym
|
||||
-- "If the specified KeySym is not defined for any KeyCode,
|
||||
-- XKeysymToKeycode() returns zero."
|
||||
when (kc /= '\0') $ mapM_ (grab kc . (mask .|.)) $
|
||||
[0, numlockMask, lockMask, numlockMask .|. lockMask]
|
||||
when (kc /= '\0') $ mapM_ (grab kc . (mask .|.)) extraModifiers
|
||||
|
||||
where grab kc m = grabKey dpy kc m rootw True grabModeAsync grabModeAsync
|
||||
|
||||
|
Reference in New Issue
Block a user