e_comp: add e_comp_client_zone_is_displaying() function 07/295507/2
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 7 Jul 2023 10:16:25 +0000 (19:16 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Jul 2023 06:30:01 +0000 (06:30 +0000)
This function states if the zone including ec is displaying or not.

Change-Id: Idc9f17e6293d21c4b67a7c2c70dac2ab949b6028

src/bin/e_comp.c
src/bin/e_comp.h

index 65bf02b..06399bb 100644 (file)
@@ -1429,3 +1429,15 @@ e_comp_zone_find_by_ec(E_Client *ec)
    return NULL;
 }
 
+EINTERN Eina_Bool
+e_comp_client_zone_is_displaying(E_Client *ec)
+{
+   E_Zone *zone;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE);
+
+   zone = e_comp_zone_find_by_ec(ec);
+   if (!zone) return EINA_FALSE;
+
+   return e_zone_is_displaying(zone);
+}
index de37f86..41eef38 100644 (file)
@@ -265,6 +265,7 @@ E_API Eina_Bool           e_comp_image_filter_set(E_Comp_Image_Filter filter);
 E_API E_Comp_Image_Filter e_comp_image_filter_get(void);
 
 EINTERN E_Zone *e_comp_zone_find_by_ec(E_Client *ec);
+EINTERN Eina_Bool e_comp_client_zone_is_displaying(E_Client *ec);
 
 #endif
 #endif