commit 88277eb6c74051e209e575d7bd213a0f3c2bc9f8
parent dc1b8042ab74159e2bd9b60763999023a7cd33f6
Author: sqweek <sqweek@gmail.com>
Date: Thu, 27 Sep 2007 23:46:50 +0800
Prevent crash when dragging window to the bottom of the column it's already in
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmd/wmii/mouse.c b/cmd/wmii/mouse.c
@@ -289,8 +289,10 @@ horiz:
resize_frame(f->aprev, f->aprev->r);
}
- detach_from_area(f);
- attach_to_area(fw->ra, f);
+ if (fw->ra != f->area) {
+ detach_from_area(f);
+ attach_to_area(fw->ra, f);
+ }
if(f->aprev) {
f->aprev->r.max.y = fw->fr.min.y;