Move invisible clients on max mode columns off screen

This commit is contained in:
Kris Maglione 2006-06-26 17:59:32 -04:00
parent da55fea9fd
commit f1c1f7fc44

View File

@ -97,10 +97,11 @@ relax_column(Area *a)
hdiff /= frame_size; hdiff /= frame_size;
yoff = a->rect.y + hdiff / 2; yoff = a->rect.y + hdiff / 2;
for(f=a->frame; f; f=f->anext) { for(f=a->frame; f; f=f->anext) {
f->rect.x = a->rect.x + (a->rect.width - f->rect.width) / 2;
f->rect.y = yoff; f->rect.y = yoff;
if(a->mode != Colmax) if(a->mode != Colmax || f == a->sel) {
f->rect.x = a->rect.x + (a->rect.width - f->rect.width) / 2;
yoff = f->rect.y + f->rect.height + hdiff; yoff = f->rect.y + f->rect.height + hdiff;
}
resize_client(f->client, &f->rect, True); resize_client(f->client, &f->rect, True);
} }
} }
@ -193,6 +194,7 @@ Fallthrough:
case Colmax: case Colmax:
for(f=a->frame; f; f=f->anext) { for(f=a->frame; f; f=f->anext) {
f->rect = a->rect; f->rect = a->rect;
if(f != a->sel) f->rect.x = rect.width * 2;
resize_client(f->client, &f->rect, True); resize_client(f->client, &f->rect, True);
} }
break; break;