From 7bb0fdcbad83a3a6317642ab864d472f9bd6d110 Mon Sep 17 00:00:00 2001 From: Raphael Khaiat Date: Sat, 8 Jan 2011 18:23:11 +0100 Subject: [PATCH] Fix bug #67 --- src/client.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 0464872..b5653b2 100644 --- a/src/client.c +++ b/src/client.c @@ -1249,11 +1249,22 @@ client_unmanage(Client *c) /* Arrange */ for(i = 0; i < screen_count() && !b; ++i) - if(c->tag == (uint)seltag[i] || tags[i][seltag[i]].tagad & TagFlag(c->tag)) + if(c->tag == MAXTAG + 1 || c->tag == (uint)seltag[i] || tags[i][seltag[i]].tagad & TagFlag(c->tag)) b = True; if(b) - tags[c->screen][c->tag].layout.func(c->screen); + { + if(c->tag == MAXTAG + 1) + { + if(c->tag == MAXTAG+1){ + for(i = 0; i < conf.ntag[c->screen]; i++) + tags[c->screen][i].request_update = True; + tags[c->screen][seltag[c->screen]].layout.func(c->screen); + } + } + else + tags[c->screen][c->tag].layout.func(c->screen); + } else { tags[c->screen][c->tag].request_update = True;