bu5hm4n pushed a commit to branch master.

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

commit e34d1aaba9c837f84324d8e7b9651f0c536ea29d
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 60c5327..c4aa92ac 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -782,10 +782,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