Commit 62e0c428 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

events: Do not swallow touch events on windows

Those might eventually trigger a gesture into recognition.
parent 70aee2d9
......@@ -234,8 +234,15 @@ meta_display_handle_event (MetaDisplay *display,
if (window)
/* Swallow all events on windows that come our way. */
bypass_clutter = TRUE;
if (!clutter_event_get_event_sequence (event))
/* Swallow all non-touch events on windows that come our way.
* Touch events that reach here aren't yet in an accepted state,
* so Clutter must see them to maybe trigger gestures into
* recognition.
bypass_clutter = TRUE;
/* Under X11, we have a Sync grab and in order to send it back to
* clients, we have to explicitly replay it.
......@@ -247,7 +254,7 @@ meta_display_handle_event (MetaDisplay *display,
bypass_wayland = TRUE;
else if (!clutter_event_get_event_sequence (event))
MetaBackend *backend = meta_get_backend ();
if (META_IS_BACKEND_X11 (backend))
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