GNOME Bugzilla – Bug 680255
The middle and right mouse buttons are swapped when using the evdev backend
Last modified: 2012-09-03 20:59:30 UTC
Pressing the middle mouse button makes an event for the right button and vice versa.
Created attachment 219230 [details] [review] evdev: Swap the numbers for the middle and right buttons The ordering of the evdev button numbers is the opposite of the order in Clutter (the middle button is 3 instead of 2) so we need to manually map the button numbers when creating a ClutterButtonEvent.
Review of attachment 219230 [details] [review]: looks generally okay, but I do wonder how evdev handles cases where the button order is swapped (left-handed vs right-handed), and if it doesn't, if Clutter ought to.
Attachment 219230 [details] pushed as 99a7406 - evdev: Swap the numbers for the middle and right buttons