diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-02-10 17:23:43 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-02-24 14:47:40 -0500 |
commit | 5a69750ba9fe1147bd1d4e06e7c2dd516625aa12 (patch) | |
tree | 6387318e71406507f6c3e32ca635f1beaec39bf6 | |
parent | 6616fa25104883b748530e7b2ed260131a55c8a6 (diff) | |
download | enlightenment-5a69750ba9fe1147bd1d4e06e7c2dd516625aa12.tar.gz |
reset compositor pointer cursor if wl surface destroy is the current cursor
this should never happen and is only included as a failsafe
#TheDisappointer
-rw-r--r-- | src/bin/e_comp_wl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 0df1bdbce0..99eedc6511 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2456,6 +2456,14 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec) E_FREE_FUNC(ec->comp_data->on_focus_timer, ecore_timer_del); if (ec->mouse.in) _e_comp_wl_mouse_out(ec); + else if (ec->comp_data->cursor) + { + Evas_Object *o; + + ecore_evas_cursor_get(e_comp->ee, &o, NULL, NULL, NULL); + if (o == ec->frame) + e_pointer_object_set(e_comp->pointer, NULL, 0, 0); + } /* The resource destroy callback will walk the state->frames list, * so move the list to a temporary first. |