Commit aac8072d authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Emmanuele Bassi

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.

https://bugzilla.gnome.org/show_bug.cgi?id=732235
(cherry picked from commit 02590f08)
Signed-off-by: 's avatarEmmanuele Bassi <ebassi@gnome.org>
parent ef0d2d3d
......@@ -375,6 +375,11 @@ stage_captured_event_cb (ClutterActor *stage,
event_type != CLUTTER_BUTTON_RELEASE)
return CLUTTER_EVENT_PROPAGATE;
if (event->type != CLUTTER_TOUCH_CANCEL &&
event->type != CLUTTER_TOUCH_UPDATE && event->type != CLUTTER_TOUCH_END &&
event->type != CLUTTER_MOTION && event->type != CLUTTER_BUTTON_RELEASE)
return CLUTTER_EVENT_PROPAGATE;
if ((point = gesture_find_point (action, event, &position)) == NULL)
return CLUTTER_EVENT_PROPAGATE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment