29 lines
888 B
Diff
29 lines
888 B
Diff
|
From 9c5cf971439292661e1f3055ef882526baae6310 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||
|
Date: Mon, 15 Jun 2015 10:17:20 +1000
|
||
|
Subject: [PATCH xf86-input-libinput] 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>
|
||
|
---
|
||
|
src/libinput.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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;
|
||
|
--
|
||
|
2.4.3
|
||
|
|