From d197014d717c0e0feafcd6bdaee155309c69bf30 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Dec 2007 15:58:09 +0100 Subject: [PATCH] untag client on unmanage --- client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.c b/client.c index 054f8f684..4f93c49c2 100644 --- a/client.c +++ b/client.c @@ -484,8 +484,12 @@ client_unmanage(Client *c, long state, awesome_config *awesomeconf) if(get_current_tag(awesomeconf->screens[c->screen])->client_sel == c) focus(NULL, True, awesomeconf, c->screen); for(tag = 0; tag < awesomeconf->screens[c->screen].ntags; tag++) + { if(awesomeconf->screens[c->screen].tags[tag].client_sel == c) awesomeconf->screens[c->screen].tags[tag].client_sel = NULL; + untag_client(&awesomeconf->screens[c->screen].tclink, c, + &awesomeconf->screens[c->screen].tags[tag]); + } XUngrabButton(c->display, AnyButton, AnyModifier, c->win); window_setstate(c->display, c->win, state); XSync(c->display, False);