summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-11 01:02:27 +0000
committerDana Jansens <danakj@orodu.net>2007-07-11 01:02:27 +0000
commit5ae93282f93ecafc491202a363f944d9604d3437 (patch)
treefe7d9fcf43143a9d37f5ec50768ad10e02887f47
parentaa901a8ee7cd3964e89ea0cf62dfb4ebc775fcb1 (diff)
child/parents don't get included in tests for occluding/occluded windows, because they always will be above/below eachother!
-rw-r--r--openbox/stacking.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c
index baf75198..4a58d91e 100644
--- a/openbox/stacking.c
+++ b/openbox/stacking.c
@@ -492,7 +492,8 @@ static gboolean stacking_occluded(ObClient *client, ObClient *sibling)
ObClient *c = it->data;
if (found && !c->iconic &&
(c->desktop == DESKTOP_ALL || client->desktop == DESKTOP_ALL ||
- c->desktop == client->desktop))
+ c->desktop == client->desktop) &&
+ !client_search_transient(client, c))
{
if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area))
{
@@ -534,7 +535,8 @@ static gboolean stacking_occludes(ObClient *client, ObClient *sibling)
ObClient *c = it->data;
if (found && !c->iconic &&
(c->desktop == DESKTOP_ALL || client->desktop == DESKTOP_ALL ||
- c->desktop == client->desktop))
+ c->desktop == client->desktop) &&
+ !client_search_transient(c, client))
{
if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area))
{