From 88277eb6c74051e209e575d7bd213a0f3c2bc9f8 Mon Sep 17 00:00:00 2001 From: sqweek Date: Thu, 27 Sep 2007 23:46:50 +0800 Subject: [PATCH] Prevent crash when dragging window to the bottom of the column it's already in --- cmd/wmii/mouse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/wmii/mouse.c b/cmd/wmii/mouse.c index 7f7e57eb..dc97fb7c 100644 --- 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;