okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ed1d8ac97120fa64e2d492694394599534d06e5e

commit ed1d8ac97120fa64e2d492694394599534d06e5e
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Tue Feb 7 11:47:35 2017 -0600

    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 fe008bc..e71a629 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);
                }

-- 


Reply via email to