[hackers] [wmii] Fix scaling of new columns.

From: Kris Maglione <jg_AT_suckless.org>
Date: Tue Feb 13 19:48:12 2007

changeset: 1868:9079387b15bf
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Feb 13 13:45:36 2007 -0500
summary: Fix scaling of new columns.

diff -r da344f848ae8 -r 9079387b15bf area.c
--- a/area.c Tue Feb 13 13:19:01 2007 -0500
+++ b/area.c Tue Feb 13 13:45:36 2007 -0500
@@ -45,6 +45,8 @@ create_area(View *v, Area *pos, uint w)
                 w = min_width;
         if(col_num && (col_num * min_width + w) > screen->rect.width)
                 return nil;
+ if(pos)
+ scale_view(v, screen->rect.width - w);
 
         a = ixp_emallocz(sizeof(Area));
         a->view = v;
@@ -57,9 +59,6 @@ create_area(View *v, Area *pos, uint w)
         a->sel = nil;
         a->next = *p;
         *p = a;
-
- if(pos)
- scale_view(v, screen->rect.width);
 
         if(a == v->area)
                 a->floating = True;
Received on Tue Feb 13 2007 - 19:48:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:17 UTC