From a5423c9aa609f22568761495e69a0b76f9d43e4a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 3 Nov 2017 13:23:26 -0400 Subject: [PATCH] unset wayland cursor for all pointers when running nested in wl --- src/modules/wl_wl/e_mod_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/wl_wl/e_mod_main.c b/src/modules/wl_wl/e_mod_main.c index 9bad95953..16a0ef20e 100644 --- a/src/modules/wl_wl/e_mod_main.c +++ b/src/modules/wl_wl/e_mod_main.c @@ -7,6 +7,8 @@ _cb_sync_done(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) { Ecore_Wl2_Event_Sync_Done *ev; int w = 0, h = 0; + Eina_Iterator *it; + Ecore_Wl2_Input *input; ev = event; if (ev->display != e_comp_wl->wl.client_disp) @@ -19,6 +21,10 @@ _cb_sync_done(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) e_comp_wl_output_init(NULL, NULL, NULL, 0, 0, w * 2 / 3, h * 2 / 3, 0, 0, 0, 0, 0, 0); + it = ecore_wl2_display_inputs_get(ecore_wl2_window_display_get(ecore_evas_wayland2_window_get(e_comp->ee))); + EINA_ITERATOR_FOREACH(it, input) + ecore_wl2_input_pointer_set(input, NULL, 0, 0); + eina_iterator_free(it); if (!ecore_wl2_display_dmabuf_get(e_comp_wl->wl.client_disp)) e_comp_wl->dmabuf_disable = EINA_TRUE;