From ed1d8ac97120fa64e2d492694394599534d06e5e Mon Sep 17 00:00:00 2001 From: Stephen 'Okra' Houston Date: Tue, 7 Feb 2017 11:47:35 -0600 Subject: [PATCH] Luncher: Don't update and show the preview on client del unless the preview exists. --- src/modules/luncher/bar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c index fe008bc45..e71a62906 100644 --- a/src/modules/luncher/bar.c +++ b/src/modules/luncher/bar.c @@ -1164,8 +1164,8 @@ _bar_cb_client_remove(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Clie if (!ic->in_order) _bar_icon_del(inst, ic); } - else if (ic->preview) - { + else if (ic->preview && (current_preview == ic->preview)) + { _bar_icon_preview_show(ic); } } @@ -1213,7 +1213,7 @@ _bar_cb_exec_del(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance * if (!ic->in_order) _bar_icon_del(inst, ic); } - else if (ic->preview) + else if (ic->preview && (current_preview == ic->preview)) { _bar_icon_preview_show(ic); } @@ -1325,7 +1325,7 @@ _bar_cb_exec_client_prop(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_C elm_layout_signal_emit(ic->o_layout, ori, "e"); } } - else if (ic->preview) + else if (ic->preview && (current_preview == ic->preview)) { _bar_icon_preview_show(ic); }