From: Dana Jansens Date: Mon, 13 Oct 2003 02:52:59 +0000 (+0000) Subject: inherit above/below more carefully X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=420e6f87a6503b713e4d9047f809538ec0c60d41;p=chaz%2Fopenbox inherit above/below more carefully --- diff --git a/openbox/client.c b/openbox/client.c index cc5d80ca..67c771a7 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -858,9 +858,12 @@ 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(c) == client_normal(self)) + { layer = MAX(layer, (c->above ? 1 : (c->below ? -1 : 0))); + } } switch (layer) { case -1: