From: Dana Jansens Date: Fri, 1 Jun 2007 23:41:53 +0000 (+0000) Subject: only do restack checks on windows that are visible X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=22a17d3a28603637cf9259d050c19e8090d7ab2f;p=chaz%2Fopenbox only do restack checks on windows that are visible --- diff --git a/openbox/stacking.c b/openbox/stacking.c index e323b569..942a4620 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -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) {