GNOME Bugzilla – Bug 650329
ClutterModifierType: Port fix from GDK to clutter's GDK copy
Last modified: 2011-06-13 23:06:18 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=634994 where GDK was modified to include all flag values, which helps bindings. Port this fix to Clutter's copy of GDK.
Created attachment 187922 [details] [review] ClutterModifierType: Port fix from GDK to clutter's GDK copy
an alternate fix would be to just always mask return values with CLUTTER_MODIFIER_MASK and declare that the XKB, etc, bits are not part of the Clutter API. (That would be fine for the shell's purposes.)
(In reply to comment #2) > an alternate fix would be to just always mask return values with > CLUTTER_MODIFIER_MASK and declare that the XKB, etc, bits are not part of the > Clutter API. (That would be fine for the shell's purposes.) I thought we rely on symmetry with GdkModifierType, so we couldn't do that. In any case it makes sense to keep the copies in sync, and the "just declare the values" approach works well (I tested it).
Review of attachment 187922 [details] [review]: looks good. and yes, we kind of rely on the same semantics as GdkModifierType: the ClutterModifierType shuld map 1:1 to the bits set inside the XEvents with a state field.
Attachment 187922 [details] pushed as b046bc3 - ClutterModifierType: Port fix from GDK to clutter's GDK copy