mirror of
https://github.com/0intro/wmii
synced 2025-01-23 18:42:09 +03:00
Move invisible clients on max mode columns off screen
This commit is contained in:
parent
da55fea9fd
commit
f1c1f7fc44
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user