e_policy_zone: use e_view_client api 90/323290/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 16 Apr 2025 02:50:18 +0000 (11:50 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 25 Apr 2025 07:25:30 +0000 (16:25 +0900)
change e_comp_object_content_type_get to e_view_client_content_type_get

Change-Id: I453ee11e7d76ff856f5c629b02724981826aa442

src/bin/windowmgr/e_policy_zone.c

index f137a3c81ecacbb354b6d9d29eb3c03ea3e0e485..c15f5bf9f1fc91623c60724fe7268fcc1976639a 100644 (file)
@@ -1320,6 +1320,7 @@ e_policy_zone_visibility_calculate(E_Policy_Zone *policy_zone)
 {
    E_Zone *zone;
    E_Client *ec;
+   E_View_Client *view_client;
 
    Eina_Tiler *t;
    Eina_Rectangle r, *_r;
@@ -1378,13 +1379,14 @@ e_policy_zone_visibility_calculate(E_Policy_Zone *policy_zone)
         calc_skip_type = 0;
         if (e_object_is_del(E_OBJECT(ec))) continue;
         if (e_client_util_ignored_get(ec)) continue;
-        if (!e_client_view_get(ec)) continue;
+        view_client = e_client_view_get(ec);
+        if (!view_client) continue;
         if (ec->visibility.skip) continue;
         if (ec->is_cursor) continue;
         cdata = e_client_cdata_get(ec);
         if (e_comp_wl_subsurface_check(ec)) continue;
         if ((!ec->first_mapped) &&
-            (e_comp_object_content_type_get(ec->frame) == E_COMP_OBJECT_CONTENT_TYPE_INT_IMAGE)) continue;
+            (e_view_client_content_type_get(view_client) == E_COMP_OBJECT_CONTENT_TYPE_INT_IMAGE)) continue;
 
         /* TODO: need to check whether window intersects with entire screen, not zone. */
         /* if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zone->x, zone->y, zone->w, zone->h)) continue; */