After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680255 - The middle and right mouse buttons are swapped when using the evdev backend
The middle and right mouse buttons are swapped when using the evdev backend
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-19 14:30 UTC by Neil Roberts
Modified: 2012-09-03 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evdev: Swap the numbers for the middle and right buttons (1.96 KB, patch)
2012-07-19 14:30 UTC, Neil Roberts
committed Details | Review

Description Neil Roberts 2012-07-19 14:30:14 UTC
Pressing the middle mouse button makes an event for the right button and vice versa.
Comment 1 Neil Roberts 2012-07-19 14:30:41 UTC
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.
Comment 2 Emmanuele Bassi (:ebassi) 2012-07-19 14:36:18 UTC
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.
Comment 3 Emmanuele Bassi (:ebassi) 2012-09-03 20:59:23 UTC
Attachment 219230 [details] pushed as 99a7406 - evdev: Swap the numbers for the middle and right buttons