From: SooChan Lim Date: Wed, 12 Jul 2023 01:26:46 +0000 (+0900) Subject: e_policy_visibility: remove the use of ec->zone X-Git-Tag: accepted/tizen/unified/20230713.143510~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7585c2ff4ecc938c38d368fe5cf952b3dc077e4;p=platform%2Fupstream%2Fenlightenment.git e_policy_visibility: remove the use of ec->zone The zone variable at e_client will be deprecated. Change-Id: Iac9093ae4133bcdfbae17536363b425f267891b1 --- diff --git a/src/bin/e_policy_visibility.c b/src/bin/e_policy_visibility.c index 811af20..46d6750 100644 --- a/src/bin/e_policy_visibility.c +++ b/src/bin/e_policy_visibility.c @@ -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);