mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
a9ba98686f
commit
5dc8fa6690
@ -106,6 +106,7 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
MetaWindow *window;
|
MetaWindow *window;
|
||||||
gboolean bypass_clutter = FALSE, bypass_wayland = FALSE;
|
gboolean bypass_clutter = FALSE, bypass_wayland = FALSE;
|
||||||
MetaWaylandCompositor *compositor = NULL;
|
MetaWaylandCompositor *compositor = NULL;
|
||||||
|
MetaGestureTracker *tracker;
|
||||||
|
|
||||||
if (meta_is_wayland_compositor ())
|
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 &&
|
if (display->grab_window == window &&
|
||||||
meta_grab_op_is_moving_or_resizing (display->grab_op))
|
meta_grab_op_is_moving_or_resizing (display->grab_op))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user