only use visible windows when calcing for raiselower
authorDana Jansens <danakj@orodu.net>
Fri, 22 Aug 2003 15:57:20 +0000 (15:57 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 22 Aug 2003 15:57:20 +0000 (15:57 +0000)
openbox/action.c

index 80c689f..b035558 100644 (file)
@@ -784,7 +784,10 @@ void action_raiselower(union ActionData *data)
         ObClient *cit = it->data;
 
         if (cit == c) break;
-        if (client_normal(cit) == client_normal(c) && cit->layer == c->layer) {
+        if (client_normal(cit) == client_normal(c) &&
+            cit->layer == c->layer &&
+            cit->frame->visible)
+        {
             if (RECT_INTERSECTS_RECT(cit->frame->area, c->frame->area)) {
                 raise = TRUE;
                 break;