diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-06-15 10:17:20 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-06-15 10:20:18 +1000 |
commit | 9c5cf971439292661e1f3055ef882526baae6310 (patch) | |
tree | fd08a723ac9b25a90c6502d1e4b764d6d18fc941 | |
parent | 449b496a3abd2860ada3a27a4d23efc28b87448d (diff) |
Support buttons > BTN_BACK on mice
https://bugzilla.redhat.com/show_bug.cgi?id=1230945
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/libinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libinput.c b/src/libinput.c index 595b177..a06e44f 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -456,7 +456,7 @@ xf86libinput_init_pointer(InputInfoPtr pInfo) Atom btnlabels[MAX_BUTTONS]; Atom axislabels[TOUCHPAD_NUM_AXES]; - for (i = BTN_BACK; i >= BTN_SIDE; i--) { + for (i = BTN_JOYSTICK - 1; i >= BTN_SIDE; i--) { if (libinput_device_pointer_has_button(driver_data->device, i)) { nbuttons += i - BTN_SIDE + 1; break; |