Commit 5dc8fa66 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Jasper St. Pierre
Browse files

events: Hook MetaGestureTracker to display event processing

Events aren't actually consumed by the MetaGestureTracker, but it
rather defines whether the event will reach clients, or the stage.
parent a9ba9868
......@@ -106,6 +106,7 @@ meta_display_handle_event (MetaDisplay *display,
MetaWindow *window;
gboolean bypass_clutter = FALSE, bypass_wayland = FALSE;
MetaWaylandCompositor *compositor = NULL;
MetaGestureTracker *tracker;
if (meta_is_wayland_compositor ())
......@@ -141,6 +142,15 @@ meta_display_handle_event (MetaDisplay *display,
tracker = meta_display_get_gesture_tracker (display);
if (meta_gesture_tracker_handle_event (tracker, event))
bypass_wayland = TRUE;
bypass_clutter = meta_gesture_tracker_consumes_event (tracker, event);
goto out;
if (display->grab_window == window &&
meta_grab_op_is_moving_or_resizing (display->grab_op))
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