Luncher: Make sure to free the previous window preview, not the current one on mouse in.

This commit is contained in:
Stephen okra Houston 2016-11-21 10:01:53 -06:00
parent 33ecfe5b99
commit 16d48c353b
1 changed files with 3 additions and 3 deletions

View File

@ -855,11 +855,11 @@ _bar_icon_mouse_in(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *even
if (current_preview && clients && !current_preview_menu)
{
Icon *icon = evas_object_data_get(current_preview, "icon");
E_FREE_FUNC(ic->preview_box, evas_object_del);
elm_ctxpopup_dismiss(ic->preview);
E_FREE_FUNC(icon->preview_box, evas_object_del);
elm_ctxpopup_dismiss(icon->preview);
current_preview = NULL;
current_preview_menu = EINA_FALSE;
ic->active = EINA_FALSE;
icon->active = EINA_FALSE;
_bar_icon_preview_show(ic);
}
else