e_comp: remove the e_comp_vis_ec_list_get 61/325161/3
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 28 May 2025 08:50:46 +0000 (17:50 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 4 Jun 2025 04:53:39 +0000 (04:53 +0000)
e_comp_vis_ec_list_get is not used anywhere.

Change-Id: Ie3e3771be4a7057e967975a76826604783415b80

src/bin/compmgr/e_comp.c
src/include/e_comp.h

index 1170595b37422bb5570d6aa2a1c117fbc7586a68..516e9fe563551ed166a71d5730f68394c4c1ce10 100644 (file)
@@ -846,52 +846,6 @@ e_comp_launchscrn_ec_remove(E_Client *ec)
    e_comp->launchscrns = eina_list_remove(e_comp->launchscrns, ec);
 }
 
-E_API Eina_List *
-e_comp_vis_ec_list_get(E_Zone *zone)
-{
-   Eina_List *ec_list = NULL;
-   E_Client  *ec;
-   Evas_Object *o;
-
-   E_OBJECT_CHECK_RETURN(zone, NULL);
-   E_OBJECT_TYPE_CHECK_RETURN(zone, E_ZONE_TYPE, NULL);
-
-   // TODO: check if eout is available to use hwc policy
-   for (o = evas_object_top_get(e_comp->evas); o; o = evas_object_below_get(o))
-     {
-        int x, y, w, h;
-        int scr_w, scr_h;
-
-        // check if evas_object is the one of e_client aka ec->frame
-        ec = evas_object_data_get(o, "E_Client");
-        if (!ec) continue;
-        if (e_object_is_del(E_OBJECT(ec))) continue;
-        if (e_client_util_ignored_get(ec)) continue;
-        if (e_comp_zone_find_by_ec(ec) != zone) continue;
-
-        if (!evas_object_visible_get(o)) continue;
-        if (evas_object_data_get(o, "comp_skip")) continue;
-
-        // check geometry if located out of screen such as quick panel
-        ecore_evas_geometry_get(e_comp->ee, NULL, NULL, &scr_w, &scr_h);
-        if (!E_INTERSECTS(0, 0, scr_w, scr_h,
-                          ec->client.x, ec->client.y, ec->client.w, ec->client.h))
-          continue;
-
-        ec_list = eina_list_append(ec_list, ec);
-
-        // find full opaque win and excludes below wins from the visible list.
-        e_client_geometry_get(ec, &x, &y, &w, &h);
-        if (!E_CONTAINS(x, y, w, h, 0, 0, scr_w, scr_h))
-           continue;
-
-        if (!ec->argb)
-          break;
-     }
-
-   return ec_list;
-}
-
 E_API void
 e_comp_size_get(int *w, int *h)
 {
index f896db014a80132544aa3606f430d98e77967a44..c9594e6ee8b52cb6256eb27795e410d1bf24cfd7 100644 (file)
@@ -181,7 +181,6 @@ E_API void            e_comp_render_queue(void);
 E_API void            e_comp_override_add(void);
 E_API void            e_comp_override_del(void);
 E_API void            e_comp_layer_name_get(unsigned int layer, char *buff, int buff_size);
-E_API void            e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd);
 E_API void            e_comp_client_override_add(E_Client *ec);
 E_API void            e_comp_client_override_del(E_Client *ec);
 
@@ -192,7 +191,6 @@ E_API Eina_List      *e_comp_zone_list_get(void);
 E_API Eina_List      *e_comp_ec_list_get(void);
 E_API Eina_List      *e_comp_connected_ec_list_get(void);
 E_API Eina_List      *e_comp_launchscrn_list_get(void);
-E_API Eina_List      *e_comp_vis_ec_list_get(E_Zone *zone); // visible ec list sorted by z order
 
 E_API void            e_comp_size_get(int *w, int *h);
 E_API E_Pointer      *e_comp_pointer_get(void);