diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-11-03 13:23:26 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-11-03 13:18:37 -0400 |
commit | 8948a0529689502de019f8789b437dc24bc46e06 (patch) | |
tree | 38e01f417f6568b511dd30bc336ee6159a9c0c85 | |
parent | f335191e75a7e6daa929d1fa31952636578de0ff (diff) | |
download | enlightenment-8948a0529689502de019f8789b437dc24bc46e06.tar.gz |
unset wayland cursor for all pointers when running nested in wl
-rw-r--r-- | src/modules/wl_wl/e_mod_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/wl_wl/e_mod_main.c b/src/modules/wl_wl/e_mod_main.c index 9bad95953d..16a0ef20e9 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; |