e_policy_wl: remove the use of ec->zone 82/295682/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 12 Jul 2023 01:23:20 +0000 (10:23 +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: Ia624f9147c5f4b37514dd768ef5bb28b8edbd03a

src/bin/e_policy_wl.c

index ca9b313..2e2e6e5 100644 (file)
@@ -1159,13 +1159,10 @@ e_policy_wl_visibility_send(E_Client *ec, int vis)
           EINA_LIST_FOREACH(psurf->vislist, ll, res_tzvis)
             {
                // below code is workaround for checking visibility by display off or not
-               if (ec->zone)
-                 {
-                    if (e_comp_client_zone_is_displaying(ec))
-                      e_policy_aux_message_send(ec, "dpms_wm", "on", NULL);
-                    else
-                      e_policy_aux_message_send(ec, "dpms_wm", "off", NULL);
-                 }
+               if (e_comp_client_zone_is_displaying(ec))
+                  e_policy_aux_message_send(ec, "dpms_wm", "on", NULL);
+               else
+                  e_policy_aux_message_send(ec, "dpms_wm", "off", NULL);
 
                ver = wl_resource_get_version(res_tzvis);
                sent_vis = vis;
@@ -4982,7 +4979,7 @@ _e_tzsh_indicator_find_topvisible_client(E_Zone *zone)
         if (!ec) continue;
         if (e_object_is_del(E_OBJECT(ec))) continue;
         if (e_client_util_ignored_get(ec)) continue;
-        if (ec->zone != zone) continue;
+        if (!e_zone_has_ec(zone, ec)) continue;
         if (!ec->frame) continue;
 
         if (!ec->visible) continue;