From 22a17d3a28603637cf9259d050c19e8090d7ab2f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 1 Jun 2007 23:41:53 +0000 Subject: [PATCH] only do restack checks on windows that are visible --- openbox/stacking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.45.2