e_process: use e_client_cdata_get 17/247617/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 11 Nov 2020 03:10:58 +0000 (12:10 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 12 Nov 2020 23:21:55 +0000 (08:21 +0900)
Change-Id: If9f57a5a17d85762f70b405655a214d4f00fc6f7

src/bin/e_process.c

index 057d364c93c29974495f7ffc56e8a37ac131df3c..f9bce479d255b1252b4d3425f6e2bd6e2c22507e 100644 (file)
@@ -427,6 +427,7 @@ _e_process_freeze_condition_check(pid_t pid)
 {
    E_Process *pinfo  = NULL;
    E_Client *ec = NULL;
+   E_Comp_Wl_Client_Data *cdata;
    Eina_Bool freeze = EINA_TRUE;
    Eina_List *l;
 
@@ -440,9 +441,10 @@ _e_process_freeze_condition_check(pid_t pid)
 
    EINA_LIST_FOREACH(pinfo->ec_list, l, ec)
      {
-        if (ec->comp_data &&
-            ec->comp_data->sub.data &&
-            ec->comp_data->sub.data->parent)
+        cdata = e_client_cdata_get(ec);
+        if (cdata &&
+            cdata->sub.data &&
+            cdata->sub.data->parent)
           continue;
 
         if (ec->visible && !ec->iconic)