From 67ca9b6ad9e77ed51602fac7ba828f16ea36e20b Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 12 Jul 2023 10:23:20 +0900 Subject: [PATCH] e_policy_wl: remove the use of ec->zone The zone variable at e_client will be deprecated. Change-Id: Ia624f9147c5f4b37514dd768ef5bb28b8edbd03a --- src/bin/e_policy_wl.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index ca9b313..2e2e6e5 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -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; -- 2.7.4