fixed annoying area[0] removal on detach_fromarea

This commit is contained in:
Anselm R. Garbe 2006-03-08 23:58:21 +01:00
parent ee58535ee0
commit fd9dbf43e0

View File

@ -159,7 +159,7 @@ detach_fromarea(Area *a, Client *c)
if(a->nframe)
arrange_area(a);
else {
if(t->narea > 2)
if(area2index(a) && t->narea > 2)
destroy_area(a);
arrange_tag(t, True);
}