mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user