discomfitor pushed a commit to branch enlightenment-0.20.

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

commit 5a21fd6ee3082642d256f791a697f2ff12b83b11
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Mar 28 12:59:34 2016 -0400

    do not add deleted clients to tasks gadgets
---
 src/modules/tasks/e_mod_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/tasks/e_mod_main.c b/src/modules/tasks/e_mod_main.c
index cbe69a9..d0d2ece 100644
--- a/src/modules/tasks/e_mod_main.c
+++ b/src/modules/tasks/e_mod_main.c
@@ -369,7 +369,7 @@ _tasks_new(Evas *e, E_Zone *zone, const char *id)
    tasks->horizontal = 1;
    EINA_LIST_FOREACH(e_comp->clients, l, ec)
      {
-        if (!e_client_util_ignored_get(ec))
+        if ((!e_client_util_ignored_get(ec)) && 
(!e_object_is_del(E_OBJECT(ec))))
           tasks->clients = eina_list_append(tasks->clients, ec);
      }
 
@@ -889,7 +889,7 @@ _tasks_cb_event_client_add(void *data EINA_UNUSED, int type 
EINA_UNUSED, void *e
    Tasks *tasks;
    Eina_List *l;
 
-   if (e_client_util_ignored_get(ev->ec)) return ECORE_CALLBACK_RENEW;
+   if (e_client_util_ignored_get(ev->ec) || e_object_is_del(E_OBJECT(ev->ec))) 
return ECORE_CALLBACK_RENEW;
    EINA_LIST_FOREACH(tasks_config->tasks, l, tasks)
      {
         if ((!tasks->clients) || (!eina_list_data_find(tasks->clients, 
ev->ec)))

-- 


Reply via email to