]> Dogcows Code - chaz/openbox/commitdiff
only do restack checks on windows that are visible
authorDana Jansens <danakj@orodu.net>
Fri, 1 Jun 2007 23:41:53 +0000 (23:41 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 1 Jun 2007 23:41:53 +0000 (23:41 +0000)
openbox/stacking.c

index e323b569fd670e0d0098b0fe6813e59426847abe..942a462056160ad5e0d83013e235bf9d084f25da 100644 (file)
@@ -483,7 +483,7 @@ static gboolean stacking_occluded(ObClient *client, ObClient *sibling)
          it = (found ? g_list_previous(it) :g_list_next(it)))
         if (WINDOW_IS_CLIENT(it->data)) {
             ObClient *c = it->data;
-            if (found) {
+            if (found && c->frame->visible) {
                 if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area))
                 {
                     if (sibling != NULL) {
@@ -522,7 +522,7 @@ static gboolean stacking_occludes(ObClient *client, ObClient *sibling)
     for (it = stacking_list; it; it = g_list_next(it))
         if (WINDOW_IS_CLIENT(it->data)) {
             ObClient *c = it->data;
-            if (found) {
+            if (found && c->frame->visible) {
                 if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area))
                 {
                     if (sibling != NULL) {
This page took 0.026142 seconds and 4 git commands to generate.