diff options
Diffstat (limited to 'x11-misc/xbindkeys/files/xbindkeys-apply-mask-on-release-event-status.patch')
-rw-r--r-- | x11-misc/xbindkeys/files/xbindkeys-apply-mask-on-release-event-status.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-misc/xbindkeys/files/xbindkeys-apply-mask-on-release-event-status.patch b/x11-misc/xbindkeys/files/xbindkeys-apply-mask-on-release-event-status.patch new file mode 100644 index 000000000000..427983e2d12b --- /dev/null +++ b/x11-misc/xbindkeys/files/xbindkeys-apply-mask-on-release-event-status.patch @@ -0,0 +1,28 @@ +commit ceb7093f8d77cf5952e8e7778db02a6f3e8d8872 +Author: Alberto <address@hidden> +Date: Mon Feb 10 09:21:57 2014 +0200 + + fix keyboard layout problems + +diff --git a/xbindkeys.c b/xbindkeys.c +index b0adef9..162e47e 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); + |