GNOME Bugzilla – Bug 758237
[evdev] Buttons 4-7 should be skipped to remain compatible with x11
Last modified: 2015-11-17 21:48:22 UTC
This bug is similar to bug #758072 reported to gtk+, although it's probably less urgent here. For extra pointer buttons (>3), Clutter right now assigns buttons starting at 4, however on x11 those used to be given indexes starting at 8 as buttons 4-7 were usually taken by scrolling buttons.
Created attachment 315767 [details] [review] 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.
Review of attachment 315767 [details] [review]: Okay. ::: clutter/evdev/clutter-device-manager-evdev.c @@ +591,3 @@ } + if (G_UNLIKELY (button_nr < 1 || button_nr > 12)) Drop the unlikely — it's unnecessary.
Attachment 315767 [details] pushed as 83b738c - evdev: Move additional pointer buttons after the old 4-7 scrolling ones