e_desk_group: use e_client_cdata_get 16/247616/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 11 Nov 2020 03:10:09 +0000 (12:10 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 12 Nov 2020 23:21:51 +0000 (08:21 +0900)
Change-Id: I99a71663c216dcc66fe5925914554b89d4de6fa0

src/bin/e_desk_group.c

index 53f48d4..4ba4bb9 100644 (file)
@@ -189,13 +189,15 @@ e_desk_group_del(E_Desk_Group *edg)
 
 void _e_desk_group_ec_geometry_apply(E_Desk_Group *edg, E_Client *ec)
 {
+   E_Comp_Wl_Client_Data *cdata;
    E_Util_Transform *transform;
 
    transform = ec->desk_group.transform;
    if (!transform) return;
 
    // skip subsurface
-   if (ec->comp_data && ec->comp_data->sub.data)
+   cdata = e_client_cdata_get(ec);
+   if (cdata && cdata->sub.data)
      return;
 
    e_util_transform_move(transform, edg->x, edg->y, 0);