GNOME Bugzilla – Bug 732235
clutter gesture actions may mistakenly handle enter/leave events
Last modified: 2014-06-26 00:34:46 UTC
The captured event handler set by ClutterGestureAction doesn't filter on event types too much, possibly adding point information for the NULL sequence when enter/leave events are received, even if the gesture is exclusively handling with touch events (non-NULL sequences), this leads to some wrong accounting on the number of touches happening. I'm attaching a patch to fix that.
Created attachment 279232 [details] [review] gesture-action: Ignore any other event than press/update/release ones CLUTTER_ENTER/LEAVE might be processed too, leading to accounting of the NULL sequence (ie. pointer) in the gesture, and fooling the gesture with a static extra point that wouldn't go away.
Review of attachment 279232 [details] [review]: looks good. ::: clutter/clutter-gesture-action.c @@ +364,3 @@ GesturePoint *point; + if (event->type != CLUTTER_TOUCH_CANCEL && I really prefer using the accessor function clutter_event_type(), instead of direct access to the event structures. I can fix this post-merge, tho.
Attachment 279232 [details] pushed as 830618e - gesture-action: Ignore any other event than press/update/release ones