From: Doyoun Kang Date: Thu, 6 Aug 2020 05:52:27 +0000 (+0900) Subject: e_process: modify E_CLIENT_HOOK_DEL callback function X-Git-Tag: submit/tizen/20200806.063603~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=525fb22934a75d5a3c5da75b0e5bf1f97dd579e0;p=platform%2Fupstream%2Fenlightenment.git 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 --- 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);