From 0ca8c3d5e13fc83b27d464bc5e42d957a4ebbe25 Mon Sep 17 00:00:00 2001 From: Sean Pringle Date: Fri, 2 Jan 2015 21:50:51 +1000 Subject: [PATCH] avoid managing unmanaged parents of transient windows --- client.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 01c8833..61af74f 100644 --- a/client.c +++ b/client.c @@ -182,8 +182,11 @@ void client_place_spot(Client *c, int spot, int mon, int force) // try to center over our transient parent if (!force && c->transient && (t = window_build_client(c->transient))) { - spot = t->spot; - mon = t->monitor; + if (t->manage) + { + spot = t->spot; + mon = t->monitor; + } client_free(t); } else @@ -293,7 +296,7 @@ void client_raise_family(Client *c) for_windows(i, o) if (o->type == atoms[_NET_WM_WINDOW_TYPE_DOCK]) client_stack_family(o, &raise); - while (c->transient && (o = window_build_client(c->transient))) + while (c->transient && (o = window_build_client(c->transient)) && o->manage) c = family.clients[family.depth++] = o; client_stack_family(c, &raise);