From 9caf9ffbbb6fbbc2e3a03bca14253182da5ac5bc Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Thu, 6 Sep 2012 11:12:53 +0200 Subject: [PATCH] gesture-action: unregister point on missed release events When we miss button release events (eg. when they happen outside of our window) we must ensure that the corresponding point is removed from the array of tracked points, otherwise GestureAction will get very confused and will cancel all subsequent gestures. https://bugzilla.gnome.org/show_bug.cgi?id=683471 --- clutter/clutter-gesture-action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c index 2f77a1470..953a946e2 100644 --- a/clutter/clutter-gesture-action.c +++ b/clutter/clutter-gesture-action.c @@ -226,6 +226,7 @@ stage_captured_event_cb (ClutterActor *stage, if (!(mods & CLUTTER_BUTTON1_MASK)) { cancel_gesture (action); + gesture_unregister_point (action, position); return CLUTTER_EVENT_PROPAGATE; } }