reset compositor pointer cursor if wl surface destroy is the current cursor

this should never happen and is only included as a failsafe

 #TheDisappointer
This commit is contained in:
Mike Blumenkrantz 2017-02-10 17:23:43 -05:00
parent 7350a9c891
commit c6216d7c1e
1 changed files with 8 additions and 0 deletions

View File

@ -2512,6 +2512,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.