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
This commit is contained in:
parent
70aee2d95e
commit
62e0c42803
@ -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))
|
||||||
|
{
|
||||||
|
/* 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;
|
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,
|
|||||||
{
|
{
|
||||||
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))
|
||||||
|
Loading…
Reference in New Issue
Block a user