e_process: check ec's validation in _e_process_windows_visible_get 08/270308/1 accepted/tizen/6.5/unified/20220204.132414 submit/tizen_6.5/20220204.063136
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 27 Jan 2022 08:13:19 +0000 (17:13 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 28 Jan 2022 01:28:06 +0000 (10:28 +0900)
We modify code to skip the deleted ec while checking the visible state of windows.

By this patch, if all windows of specified process are destroyed, then e makes the state
of process to STATE_BACKGROUND and sends E_PROCESS_ACT_NO_VISIBLE_WINDOWS action signal.

Change-Id: I12bc0c7d1c9fa1e07909429e01072bd857adf12f

src/bin/e_process.c

index 85100fdd72b3a6e8690ce341255d924397824fcf..29af2003c49871dfd5e645d35e69ea519d2b0356 100644 (file)
@@ -421,6 +421,8 @@ _e_process_windows_visible_get(pid_t pid, Eina_Bool *visible)
 
    EINA_LIST_FOREACH(pinfo->ec_list, l, ec)
      {
+        if (e_object_is_del(E_OBJECT(ec))) continue;
+
         if (ec->visible && !ec->iconic)
           {
              exist_visible = EINA_TRUE;