From 21e6db0049cae45c7a4da478ad7b4c49b3534878 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 8 Feb 2009 14:00:30 +0100 Subject: [PATCH] client: reset transient_for on unmanage Signed-off-by: Julien Danjou --- client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.c b/client.c index 0b3436eb..a64a3ace 100644 --- a/client.c +++ b/client.c @@ -1025,6 +1025,11 @@ client_unmanage(client_t *c) { tag_array_t *tags = &globalconf.screens[c->screen].tags; + /* Reset transient_for attributes of widows that maybe refering to us */ + for(client_t *tc = globalconf.clients; tc; tc = tc->next) + if(tc->transient_for == c) + tc->transient_for = NULL; + if(globalconf.screens[c->phys_screen].client_focus == c) client_unfocus(c);