commit dc1b8042ab74159e2bd9b60763999023a7cd33f6
parent c7593d27dfcdb14e015b69442f00ee036a0bcd9f
Author: sqweek <sqweek@gmail.com>
Date: Thu, 27 Sep 2007 23:25:28 +0800
Fixed empty column bug when moving last client with the mouse
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cmd/wmii/mouse.c b/cmd/wmii/mouse.c
@@ -289,9 +289,8 @@ horiz:
resize_frame(f->aprev, f->aprev->r);
}
- remove_frame(f);
- f->area = fw->ra;
- insert_frame(fw->fp, f);
+ detach_from_area(f);
+ attach_to_area(fw->ra, f);
if(f->aprev) {
f->aprev->r.max.y = fw->fr.min.y;