okra pushed a commit to branch master.

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

commit 382dc8e3b0b1cdb8155359a4e8a66761b521913d
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Tue Jan 10 20:33:27 2017 +0100

    luncher: do not add clients twice
    
    they can be part of the exec and of the Icon.
    
    this fixes T4970
---
 src/modules/luncher/bar.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index f3e86bf..80ccd57 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -784,10 +784,16 @@ _bar_icon_preview_show(void *data)
    EINA_LIST_FOREACH(ic->execs, l, ex)
      {
         EINA_LIST_FOREACH(ex->clients, ll, ec)
-          clients = eina_list_append(clients, ec);
+          {
+             if (!eina_list_data_find(clients, ec))
+               clients = eina_list_append(clients, ec);
+          }
      }
    EINA_LIST_FOREACH(ic->clients, l, ec)
-     clients = eina_list_append(clients, ec);
+     {
+        if (!eina_list_data_find(clients, ec))
+          clients = eina_list_append(clients, ec);
+     }
 
    EINA_LIST_FREE(clients, ec)
      {

-- 


Reply via email to