[clutter/clutter-1.18] gesture-action: Ignore any other event than press/update/release ones
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] gesture-action: Ignore any other event than press/update/release ones
- Date: Wed, 13 Aug 2014 10:36:25 +0000 (UTC)
commit aac8072d733aef48b9c8d4ab72a80007cd2a615c
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 25 13:14:44 2014 +0200
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 02590f08ac81a24c476fdf18d79ceffdfe7f1a34)
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
clutter/clutter-gesture-action.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c
index da415d5..1d47b5a 100644
--- a/clutter/clutter-gesture-action.c
+++ b/clutter/clutter-gesture-action.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]