summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-05-09 07:58:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-05-09 08:15:43 +1000
commitce85432f41549cd6f3c6e0c5e2e39d0c1aee8dfd (patch)
treea37844a446683deaab07adba5c6015144f20c4f0 /src
parent181ea654dd737783553289a77b72706783b40c17 (diff)
Discard buttons >= 256
https://bugs.freedesktop.org/show_bug.cgi?id=95295 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/xf86libinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index eb36c51..d6e79bc 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -1116,7 +1116,7 @@ xf86libinput_handle_button(InputInfoPtr pInfo, struct libinput_event_pointer *ev
if (draglock_get_mode(&driver_data->draglock) != DRAGLOCK_DISABLED)
draglock_filter_button(&driver_data->draglock, &button, &is_press);
- if (button)
+ if (button && button < 256)
xf86PostButtonEvent(dev, Relative, button, is_press, 0, 0);
}