Stop sending wayland motion events when the mouse is grabbed

This stops the compositor from sending motion events to internal
windows while they're being moved or resized.
This commit is contained in:
Derek Foreman 2017-02-02 12:03:51 -06:00 committed by Mike Blumenkrantz
parent 0a1733ba9a
commit 17e66ed2b5
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ _e_comp_wl_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
if (e_object_is_del(E_OBJECT(ec))) return;
if (ec->ignored) return;
if (!ec->comp_data->surface) return;
if (e_comp->input_mouse_grabs) return;
if ((!e_comp_wl->drag_client) ||
(!e_client_has_xwindow(e_comp_wl->drag_client)))