elementary: Delete mouse pointer when window is closed

If we are running Wayland clients which create their own mouse
pointers, then we need to remove the mouse pointer ecore_evas when the
window is deleted else we get crashes because the mouse pointer is
still trying to render. This fixes the issue of internal Enlightenment
windows causing crashes when closed.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-10-26 09:33:24 -04:00
parent 48111f9732
commit efe5150bb8
1 changed files with 5 additions and 0 deletions

View File

@ -2672,6 +2672,11 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Win_Data *sd)
#endif
#ifdef HAVE_ELEMENTARY_WL2
ecore_event_handler_del(sd->wl.configure_handler);
if (sd->pointer.obj)
{
evas_object_del(sd->pointer.obj);
ecore_evas_free(sd->pointer.ee);
}
#endif
if (sd->img_obj)