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 597735 - Deal with unknown flags from ClutterEvent.get_state()
Deal with unknown flags from ClutterEvent.get_state()
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2009-10-07 21:22 UTC by Owen Taylor
Modified: 2009-10-07 21:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Deal with unknown flags from ClutterEvent.get_state() (3.51 KB, patch)
2009-10-07 21:22 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2009-10-07 21:22:36 UTC
When we get a ClutterModifierType from Clutter, it might contain
bits not in the enumeration. See bug 59771 for a similar problem
with GdkModifierType.

Add a wrapper Shell.get_event_state() around clutter_event_get_state()
to mask these bits out and only return approved bits.
Comment 1 Owen Taylor 2009-10-07 21:22:37 UTC
Created attachment 144993 [details] [review]
Deal with unknown flags from ClutterEvent.get_state()
Comment 2 Owen Taylor 2009-10-07 21:26:02 UTC
Attachment 144993 [details] pushed as ff39edd - Deal with unknown flags from ClutterEvent.get_state()