wmii

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

commit d60c33a72852046868f09d77b9fa75de3824cbf0
parent ed3fe6663a9c3a052965fa7692e3008bf8a56bb0
Author: Sander van Dijk <sander@wmii.de>
Date:   Sun, 19 Mar 2006 20:16:46 +0100

sorry, this is what the previous patch should have looked like...


Diffstat:
cmd/wm/area.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/cmd/wm/area.c b/cmd/wm/area.c @@ -411,9 +411,11 @@ drop_resize(Frame *f, XRectangle *new) new->x -= min - new->width; new->width = min; } + new->x -= f->rect.x - a->rect.x; + new->width += f->rect.x - a->rect.x; west->rect.width = new->x - west->rect.x; - a->rect.width += a->rect.x - (new->x - (f->rect.x - a->rect.x)); - a->rect.x = new->x - (f->rect.x - a->rect.x); + a->rect.width += a->rect.x - new->x; + a->rect.x = new->x; match_horiz(west, &west->rect); match_horiz(a, &a->rect); relax_area(west); @@ -423,10 +425,12 @@ drop_resize(Frame *f, XRectangle *new) new->width = (east->rect.x + east->rect.width - min) - new->x; else if(new->width < min) new->width = min; + new->x -= f->rect.x - a->rect.x; + new->width += f->rect.x - a->rect.x; east->rect.width -= new->x + new->width - east->rect.x; east->rect.x = new->x + new->width; - a->rect.x = new->x - (f->rect.x - a->rect.x); - a->rect.width = new->width + (f->rect.x - a->rect.x); + a->rect.x = new->x; + a->rect.width = new->width; match_horiz(a, &a->rect); match_horiz(east, &east->rect); relax_area(east);