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.
This commit is contained in:
Carlos Garnacho 2014-06-19 23:10:33 +02:00 committed by Jasper St. Pierre
parent a9ba98686f
commit 5dc8fa6690

View File

@ -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))
{