e_policy_visibility: remove the use of ec->zone 83/295683/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 12 Jul 2023 01:26:46 +0000 (10:26 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 12 Jul 2023 09:06:12 +0000 (18:06 +0900)
The zone variable at e_client will be deprecated.

Change-Id: Iac9093ae4133bcdfbae17536363b425f267891b1

src/bin/e_policy_visibility.c

index 811af20..46d6750 100644 (file)
@@ -1702,7 +1702,7 @@ _e_vis_ec_above_visible_type(E_Client *ec, Eina_Bool check_child)
    int zx, zy, zw, zh;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(ec, E_POL_VIS_TYPE_ALPHA);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(ec->zone, E_POL_VIS_TYPE_ALPHA);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_zone_find_by_ec(ec), E_POL_VIS_TYPE_ALPHA);
 
    cx = ec->desk->geom.x;
    cy = ec->desk->geom.y;
@@ -1710,7 +1710,7 @@ _e_vis_ec_above_visible_type(E_Client *ec, Eina_Bool check_child)
    ch = ec->desk->geom.h;
 
    e_client_geometry_get(ec, &ex, &ey, &ew, &eh);
-   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+   e_zone_useful_geometry_get(e_comp_zone_find_by_ec(ec), &zx, &zy, &zw, &zh);
 
    // check whether ec is out of its container or not
    if (!E_INTERSECTS(ex, ey, ew, eh, cx, cy, cw, ch))
@@ -1884,11 +1884,8 @@ _e_vis_ec_below_uniconify(E_Client *ec, E_Pol_Vis_Type above_vis_type)
 
    if (!ec) return EINA_FALSE;
 
-   if (ec->zone)
-     {
-        if (!e_comp_client_zone_is_displaying(ec))
-          return EINA_FALSE;
-     }
+   if (!e_comp_client_zone_is_displaying(ec))
+     return EINA_FALSE;
 
    /* find below activity clients */
    _e_vis_ec_below_activity_clients_get(ec, &below_list);