[hackers] [wmii] Fixed empty column bug when moving last client with the mouse

From: sqweek <sqweek_AT_gmail.com>
Date: Sat Sep 29 10:53:13 2007

changeset: 2206:59c8cc6dd0a1
user: sqweek <sqweek_AT_gmail.com>
date: Thu Sep 27 23:25:28 2007 +0800
summary: Fixed empty column bug when moving last client with the mouse

diff -r 22dd2c838731 -r 59c8cc6dd0a1 cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Thu Sep 27 19:30:59 2007 +0800
+++ b/cmd/wmii/mouse.c Thu Sep 27 23:25:28 2007 +0800
@@ -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;
Received on Sat Sep 29 2007 - 10:53:13 UTC

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