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.

https://bugzilla.gnome.org/show_bug.cgi?id=733631
parent 70aee2d9
...@@ -234,8 +234,15 @@ meta_display_handle_event (MetaDisplay *display, ...@@ -234,8 +234,15 @@ meta_display_handle_event (MetaDisplay *display,
if (window) if (window)
{ {
/* Swallow all events on windows that come our way. */ if (!clutter_event_get_event_sequence (event))
bypass_clutter = TRUE; {
/* 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 /* Under X11, we have a Sync grab and in order to send it back to
* clients, we have to explicitly replay it. * clients, we have to explicitly replay it.
...@@ -247,7 +254,7 @@ meta_display_handle_event (MetaDisplay *display, ...@@ -247,7 +254,7 @@ meta_display_handle_event (MetaDisplay *display,
{ {
bypass_wayland = TRUE; bypass_wayland = TRUE;
} }
else else if (!clutter_event_get_event_sequence (event))
{ {
MetaBackend *backend = meta_get_backend (); MetaBackend *backend = meta_get_backend ();
if (META_IS_BACKEND_X11 (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