diff --git a/src/client.c b/src/client.c
index 34f1e4f222f49bd6af36cb55f139b499fb9f33a1..48fd6b8cf05208bce8cf3be53c2d9d973b764758 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)
                 {