[mutter/wip/garnacho/touchpad-gestures] events: Ensure touchpad gesture events go through clutter



commit 28c660661f325a640d95c40e61555cbb99b22bbc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 1 15:49:33 2015 +0200

    events: Ensure touchpad gesture events go through clutter
    
    They otherwise fall through paths that enable bypass_clutter, this
    is necessary so they can be picked by captured-event handlers
    along the actor hierarchy.

 src/core/events.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 5cd88b5..122adf5 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -232,6 +232,16 @@ meta_display_handle_event (MetaDisplay        *display,
         }
     }
 
+  if (event->type == CLUTTER_TOUCHPAD_PINCH_BEGIN ||
+      event->type == CLUTTER_TOUCHPAD_PINCH_UPDATE ||
+      event->type == CLUTTER_TOUCHPAD_PINCH_END ||
+      event->type == CLUTTER_TOUCHPAD_PINCH_CANCEL ||
+      event->type == CLUTTER_TOUCHPAD_SWIPE_BEGIN ||
+      event->type == CLUTTER_TOUCHPAD_SWIPE_UPDATE ||
+      event->type == CLUTTER_TOUCHPAD_SWIPE_END ||
+      event->type == CLUTTER_TOUCHPAD_SWIPE_CANCEL)
+    goto out;
+
   tracker = meta_display_get_gesture_tracker (display);
 
   if (meta_gesture_tracker_handle_event (tracker, event))


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