changeset: 2207:4aad330203cb
user: sqweek <sqweek_AT_gmail.com>
date: Thu Sep 27 23:46:50 2007 +0800
summary: Prevent crash when dragging window to the bottom of the column it's already in
diff -r 59c8cc6dd0a1 -r 4aad330203cb cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Thu Sep 27 23:25:28 2007 +0800
+++ b/cmd/wmii/mouse.c Thu Sep 27 23:46:50 2007 +0800
@@ -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;
Received on Sat Sep 29 2007 - 10:53:14 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:21 UTC