From 382dc8e3b0b1cdb8155359a4e8a66761b521913d Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 10 Jan 2017 20:33:27 +0100 Subject: [PATCH] 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 f3e86bf14..80ccd574b 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) {