mirror of
https://github.com/0intro/wmii
synced 2025-01-23 10:32:21 +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;
|
||||
yoff = a->rect.y + hdiff / 2;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
resize_client(f->client, &f->rect, True);
|
||||
}
|
||||
}
|
||||
@ -193,6 +194,7 @@ Fallthrough:
|
||||
case Colmax:
|
||||
for(f=a->frame; f; f=f->anext) {
|
||||
f->rect = a->rect;
|
||||
if(f != a->sel) f->rect.x = rect.width * 2;
|
||||
resize_client(f->client, &f->rect, True);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user