wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit f1c1f7fc4402bdd0ba85e39d1a68657063120d1b
parent da55fea9fd9fb2471aedbdb9f6c80ca9b92704af
Author: Kris Maglione <bsdaemon@wmii.de>
Date:   Mon, 26 Jun 2006 17:59:32 -0400

Move invisible clients on max mode columns off screen


Diffstat:
cmd/wm/column.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/column.c b/cmd/wm/column.c @@ -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;