e_comp_wl_rsm: remove the use of ec->zone 10/295510/2
authorSooChan Lim <sc1.lim@samsung.com>
Sun, 9 Jul 2023 00:32:25 +0000 (09:32 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Jul 2023 06:31:03 +0000 (06:31 +0000)
The zone variable at e_client will be deprecated.

Change-Id: Ifa2b2f8d3bc78ada1bd7118cd2fc72537c3b9b53

src/bin/e_comp_wl_rsm.c

index d18083b..0a35f09 100644 (file)
@@ -290,6 +290,7 @@ _remote_provider_onscreen_parent_calculate(E_Comp_Wl_Remote_Provider *provider)
    Evas_Object *o;
    E_Client *ec, *_ec;
    E_Comp_Wl_Remote_Surface *surface, *parent = NULL;
+   E_Zone *zone;
    Eina_List *l;
 
    if (!provider) return;
@@ -297,6 +298,8 @@ _remote_provider_onscreen_parent_calculate(E_Comp_Wl_Remote_Provider *provider)
    ec = provider->common.ec;
    if (!ec) return;
    if (!ec->comp_data) return;
+   zone = e_comp_zone_find_by_ec(ec);
+   if (!zone) return;
    if (!provider->common.surfaces) return;
 
    o = evas_object_top_get(e_comp->evas);
@@ -308,7 +311,6 @@ _remote_provider_onscreen_parent_calculate(E_Comp_Wl_Remote_Provider *provider)
         if (!_ec->remote_surface.consumer) continue;
         if (e_object_is_del(E_OBJECT(_ec))) continue;
         if (e_client_util_ignored_get(_ec)) continue;
-        if (_ec->zone != ec->zone) continue;
         if (!_ec->frame) continue;
         if (!_ec->visible) continue;
         if (_ec->visibility.skip) continue;
@@ -317,7 +319,8 @@ _remote_provider_onscreen_parent_calculate(E_Comp_Wl_Remote_Provider *provider)
           continue;
         if (e_comp_wl_subsurface_check(_ec)) continue;
 
-        if (!E_INTERSECTS(_ec->x, _ec->y, _ec->w, _ec->h, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h))
+        if (!e_zone_has_ec(zone, _ec)) continue;
+        if (!E_INTERSECTS(_ec->x, _ec->y, _ec->w, _ec->h, zone->x, zone->y, zone->w, zone->h))
           continue;
 
         EINA_LIST_FOREACH(provider->common.surfaces, l, surface)