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: