Commit 8d669ab8 authored by Carlos Garnacho's avatar Carlos Garnacho

gesture-action: Prepare for clutter_gesture_action_cancel() within ::gesture-end

There may be odd situations where full gesture cancellation may be wanted at once
when the first touch is lifted and ::gesture-end is emitted on a gesture action.
Although calling clutter_gesture_action_cancel() within the ::gesture-end handler
causes 2 critical warnings that are otherwise harmless.
parent ec911dc8
......@@ -224,6 +224,9 @@ gesture_unregister_point (ClutterGestureAction *action, gint position)
ClutterGestureActionPrivate *priv = action->priv;
if (action->priv->points->len == 0)
g_array_remove_index (priv->points, position);
......@@ -480,7 +483,7 @@ stage_captured_event_cb (ClutterActor *stage,
if (priv->points->len == 0)
if (priv->points->len == 0 && priv->stage_capture_id)
g_signal_handler_disconnect (priv->stage, priv->stage_capture_id);
priv->stage_capture_id = 0;
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