e_desk: use e_client_cdata_get 15/247615/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 11 Nov 2020 03:09:22 +0000 (12:09 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 12 Nov 2020 23:21:49 +0000 (08:21 +0900)
Change-Id: If2a62f92387b7e68034f946b8d9ea4c7af813482

src/bin/e_desk.c

index 9613c4114c95a7d22c8a03570a00029dc1681090..349217a95ae015f52d219a4bf43578d0df0b156b 100644 (file)
@@ -836,6 +836,7 @@ E_API void
 e_desk_geometry_set(E_Desk *desk, int x, int y, int w, int h)
 {
    E_Client *ec;
+   E_Comp_Wl_Client_Data *cdata;
    E_Maximize max;
    Eina_List *l = NULL, *ll = NULL;
    Evas_Object *m;
@@ -864,6 +865,7 @@ e_desk_geometry_set(E_Desk *desk, int x, int y, int w, int h)
 
    EINA_LIST_FOREACH(sd->clients, l, ec)
      {
+        cdata = e_client_cdata_get(ec);
         /* even if the desktop geometry is chagned, the system partial windows such as virtual
          * keyboard and clipboard should be placed at the bottom of the desktop. */
         /* QUICK FIX */
@@ -871,7 +873,7 @@ e_desk_geometry_set(E_Desk *desk, int x, int y, int w, int h)
           {
              continue;
           }
-        else if ((ec->comp_data) && (ec->comp_data->sub.data))
+        else if (cdata && cdata->sub.data)
            {
               continue;
            }
@@ -925,6 +927,7 @@ _animator_cb(void *data, double pos)
 {
    E_Desk *desk;
    E_Client *ec;
+   E_Comp_Wl_Client_Data *cdata;
    Eina_List *l;
    int cx, cy;
    double zoomx, zoomy;
@@ -949,8 +952,9 @@ _animator_cb(void *data, double pos)
 
    EINA_LIST_FOREACH(sd->clients, l, ec)
      {
+        cdata = e_client_cdata_get(ec);
         if ((ec->visibility.obscured == E_VISIBILITY_UNOBSCURED) ||
-            (ec->comp_data && ec->comp_data->sub.data))
+            (cdata && cdata->sub.data))
           _e_desk_client_zoom(ec, zoomx, zoomy, cx, cy);
      }