This commit is contained in:
Raphael Khaiat 2011-01-08 18:23:11 +01:00
parent 2273ccc5d5
commit 7bb0fdcbad

View File

@ -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;