diff options
author | Alberto Sánchez Molero <alsamolero@gmail.com> | 2014-02-10 21:11:05 +0100 |
---|---|---|
committer | Philippe Brochard <hocwp@free.fr> | 2014-02-10 21:14:14 +0100 |
commit | d4a943caa3d700a5edb18d5ab528e8cf7f6d54c9 (patch) | |
tree | 3eeb08c5b5dd3b4bdc42720a98cb393a7ed3f5ec /xbindkeys.c | |
parent | ec358418c069a794d1fde4b99045146343cc6c28 (diff) | |
download | xbindkeys-d4a943caa3d700a5edb18d5ab528e8cf7f6d54c9.tar.gz |
Fix keyboard layout problems - Ignore 13th and 14th bits of button state
Author: Alberto Sanchez Molero <alsamolero@gmail.com>
Diffstat (limited to 'xbindkeys.c')
-rw-r--r-- | xbindkeys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbindkeys.c b/xbindkeys.c index b0adef9..5b1b86b 100644 --- a/xbindkeys.c +++ b/xbindkeys.c @@ -377,7 +377,7 @@ event_loop (Display * d) printf ("e.xbutton.state=%d\n", e.xbutton.state); } - e.xbutton.state &= ~(numlock_mask | capslock_mask | scrolllock_mask + e.xbutton.state &= 0x1FFF & ~(numlock_mask | capslock_mask | scrolllock_mask | Button1Mask | Button2Mask | Button3Mask | Button4Mask | Button5Mask); @@ -409,7 +409,7 @@ event_loop (Display * d) printf ("e.xbutton.state=%d\n", e.xbutton.state); } - e.xbutton.state &= ~(numlock_mask | capslock_mask | scrolllock_mask + e.xbutton.state &= 0x1FFF & ~(numlock_mask | capslock_mask | scrolllock_mask | Button1Mask | Button2Mask | Button3Mask | Button4Mask | Button5Mask); |