summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-15 04:56:32 +0000
committerDana Jansens <danakj@orodu.net>2003-10-15 04:56:32 +0000
commit415f2cce2796e769fea0529f7cace1109a6e0ce6 (patch)
tree5fe98b90e77d62f2fe53c615490bc3b1f5f3f9b3 /openbox
parent9b0f5fcde7b7c9f140f831945c9f548d9654e81a (diff)
only inherit layer when both windows are the same normal status
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c219d607..30bceae5 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -857,7 +857,8 @@ static void client_get_state(ObClient *self)
for (it = self->group->members; it; it = g_slist_next(it)) {
ObClient *c = it->data;
- if (c != self && !client_search_transient(self, c))
+ if (c != self && !client_search_transient(self, c) &&
+ client_normal(self) == client_normal(c))
{
layer = MAX(layer,
(c->above ? 1 : (c->below ? -1 : 0)));