From 30578e2f9420c8e7588ef04fbea2170719de1bab Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Sun, 23 Jun 2002 21:04:11 +0000
Subject: [PATCH] Include non visible windows in stack computation (with the
 hope that fixes the bug reported by Jasper)

(Old svn revision: 10395)
---
 src/client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client.c b/src/client.c
index 34f1e4f22..48fd6b8cf 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1053,7 +1053,7 @@ static inline Client *clientGetTopMost(int layer, Client * exclude)
         if(c)
         {
             DBG("*** stack window [%i]=(%lx) \"%s\", layer %i\n", i, c->window, c->name, c->win_layer);
-            if((c->visible) && (!exclude || (c != exclude)))
+            if(!exclude || (c != exclude))
             {
                 if(c->win_layer <= layer)
                 {
@@ -1085,7 +1085,7 @@ static inline Client *clientGetBottomMost(int layer, Client * exclude)
         if(c)
         {
             DBG("*** stack window [%i]=(%lx) \"%s\", layer %i\n", i, c->window, c->name, c->win_layer);
-            if((c->visible) && (!exclude || (c != exclude)))
+            if(!exclude || (c != exclude))
             {
                 if(c->win_layer >= layer)
                 {
-- 
GitLab