From 525fb22934a75d5a3c5da75b0e5bf1f97dd579e0 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Thu, 6 Aug 2020 14:52:27 +0900 Subject: [PATCH] e_process: modify E_CLIENT_HOOK_DEL callback function We add code checking ec->reg_ev.add flag. If this flag is not set, this means e didn't send E_EVENT_CLIENT_REMOVE event. In this case, we have to remove ec from ec_list in e_process info. Change-Id: I7acf1e14c90cc76c1fc7dd835e93e2ed6a9e4466 --- src/bin/e_process.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/bin/e_process.c b/src/bin/e_process.c index bfa63453cc..057d364c93 100644 --- a/src/bin/e_process.c +++ b/src/bin/e_process.c @@ -370,17 +370,7 @@ _e_process_cb_hook_visibility(void *d EINA_UNUSED, E_Client *ec) static void _e_process_cb_hook_client_del(void *d EINA_UNUSED, E_Client *ec) { - Eina_Bool force_remove = EINA_TRUE; - - if ((!ec->new_client) && (!stopping)) - force_remove = EINA_FALSE; - else - { - if (stopping) - force_remove = EINA_FALSE; - } - - if (force_remove) + if (!ec->reg_ev.add) { ELOGF("PROCESS", "Delete ec from e_process by hook_del.", ec); _e_process_client_info_del(ec); -- 2.34.1