inherit above/below more carefully

This commit is contained in:
Dana Jansens 2003-10-13 02:52:59 +00:00
parent 90abec9c30
commit 420e6f87a6

View file

@ -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: