window: Don't stop irrelevant TOUCH_END events during window grab ops

During window grab ops we only react to touch events that have the
pointer emulating sequence, all other events should be propagated.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/427>
This commit is contained in:
Jonas Dreßler 2019-03-14 10:49:23 +01:00 committed by Marge Bot
parent ef1b101821
commit 504af40c69

View File

@ -6523,9 +6523,10 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
} }
case CLUTTER_TOUCH_END: case CLUTTER_TOUCH_END:
if (meta_display_is_pointer_emulating_sequence (window->display, sequence)) if (!meta_display_is_pointer_emulating_sequence (window->display, sequence))
end_grab_op (window, event); return FALSE;
end_grab_op (window, event);
return TRUE; return TRUE;
case CLUTTER_BUTTON_RELEASE: case CLUTTER_BUTTON_RELEASE: