[clutter] gesture-action: unregister point on missed release events



commit 9caf9ffbbb6fbbc2e3a03bca14253182da5ac5bc
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Thu Sep 6 11:12:53 2012 +0200

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c
index 2f77a14..953a946 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;
           }
       }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]