raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b2e79f46c8307989bb582f695c197933673a6dcf

commit b2e79f46c8307989bb582f695c197933673a6dcf
Author: Carsten Haitzler <ras...@rasterman.com>
Date:   Tue Jul 13 19:53:44 2021 +0100

    e - netwm - dont include intnernal marker layer clients in clients prop
---
 src/bin/e_hints.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c
index 7e7bf3501..ae22da05b 100644
--- a/src/bin/e_hints.c
+++ b/src/bin/e_hints.c
@@ -335,8 +335,9 @@ e_hints_client_stacking_set(void)
 {
 #ifdef HAVE_WAYLAND_ONLY
 #else
-   unsigned int c, i = 0, non_x = 0;
+   unsigned int c, i = 0, non_x = 0, count = 0;
    Ecore_X_Window *clients = NULL;
+   const char *name;
 
 //#define CLIENT_STACK_DEBUG
    /* Get client count */
@@ -355,7 +356,12 @@ e_hints_client_stacking_set(void)
                   non_x++;
                   continue;
                }
-             clients[i++] = e_client_util_win_get(ec);
+             name = evas_object_name_get(ec->frame);
+             if (!((name) && (!strcmp(name, "layer_obj"))))
+               {
+                  clients[i++] = e_client_util_win_get(ec);
+                  count++;
+               }
 #ifdef CLIENT_STACK_DEBUG
              ll = eina_list_append(ll, ec);
 #endif
@@ -384,7 +390,7 @@ e_hints_client_stacking_set(void)
     * to be returned in the list
     */
    if (i <= c)
-     ecore_x_netwm_client_list_stacking_set(e_comp->root, clients, c);
+     ecore_x_netwm_client_list_stacking_set(e_comp->root, clients, count);
    free(clients);
 #endif
 }

-- 


Reply via email to