mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
evdev: Move additional pointer buttons after the old 4-7 scrolling ones
On X11 those were skipped, so additional pointer buttons would come up as button >= 8 events. Do here the same, so we remain compatible across backends. https://bugzilla.gnome.org/show_bug.cgi?id=758237
This commit is contained in:
parent
5a022e8e14
commit
83b738c0e7
@ -585,11 +585,12 @@ notify_button (ClutterInputDevice *input_device,
|
||||
break;
|
||||
|
||||
default:
|
||||
button_nr = button - BTN_MOUSE + 1;
|
||||
/* For compatibility reasons, all additional buttons go after the old 4-7 scroll ones */
|
||||
button_nr = button - (BTN_LEFT - 1) + 4;
|
||||
break;
|
||||
}
|
||||
|
||||
if (G_UNLIKELY (button_nr < 1 || button_nr > 8))
|
||||
if (button_nr < 1 || button_nr > 12)
|
||||
{
|
||||
g_warning ("Unhandled button event 0x%x", button);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user