[hackers] [wmii] Fix moves within the same column (broken since 2206).

From: sqweek <sqweek_AT_gmail.com>
Date: Tue Oct 02 17:36:50 2007

changeset: 2213:e7085e32d2fe
user: sqweek <sqweek_AT_gmail.com>
date: Tue Oct 02 22:38:42 2007 +0800
summary: Fix moves within the same column (broken since 2206).

diff -r 187aa94b67e0 -r e7085e32d2fe cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Tue Oct 02 22:15:18 2007 +0800
+++ b/cmd/wmii/mouse.c Tue Oct 02 22:38:42 2007 +0800
@@ -289,7 +289,11 @@ horiz:
                                         resize_frame(f->aprev, f->aprev->r);
                                 }
 
- if (fw->ra != f->area) {
+ if (f->aprev || f->anext) {
+ remove_frame(f);
+ f->area = fw->ra;
+ insert_frame(fw->fp, f);
+ } else if (f->area != fw->ra) {
                                         detach_from_area(f);
                                         attach_to_area(fw->ra, f);
                                 }
Received on Tue Oct 02 2007 - 17:36:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:26 UTC