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 783791 - Incorrect button mask used when handling button events
Incorrect button mask used when handling button events
Status: RESOLVED OBSOLETE
Product: clutter
Classification: Platform
Component: wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-06-14 16:26 UTC by Jason Gerecke
Modified: 2021-06-10 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for issue (1.04 KB, patch)
2017-06-14 17:03 UTC, Jason Gerecke
none Details | Review
Use defines instead of magic numbers (5.52 KB, patch)
2017-06-14 17:05 UTC, Jason Gerecke
none Details | Review

Description Jason Gerecke 2017-06-14 16:26:43 UTC
While browsing through the code to diagnose an unrelated issue, I noticed that Clutter is using the wrong mask when a middle- or right-click is received. See [1]. Evdev event codes 272 (BTN_LEFT), 273 (BTN_RIGHT), and 274 (BTN_MIDDLE) are assigned the proper clutter button number, but the mask is incorrect.

I'm unsure what real-world effects this has, but I have confirmed with Carlos Garnacho in a private email that the code is indeed incorrect.

[1]: https://git.gnome.org/browse/clutter/tree/clutter/wayland/clutter-input-device-wayland.c#n130
Comment 1 Jason Gerecke 2017-06-14 17:03:18 UTC
Created attachment 353756 [details] [review]
Fix for issue
Comment 2 Jason Gerecke 2017-06-14 17:05:34 UTC
Created attachment 353758 [details] [review]
Use defines instead of magic numbers

Carlos suggested a second patch as well which has Clutter use defines rather than magic numbers. I noticed that many of the backends also use magic numbers so I fixed the instances I could find.
Comment 3 André Klapper 2021-06-10 11:30:55 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of clutter, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a ticket at
  https://gitlab.gnome.org/GNOME/clutter/-/issues/

Thank you for your understanding and your help.