commit 007e6e57f027aa404cf87d3aaa9e7727bfe19695
parent 4d456126186a66cf239ea4cb2099c59bc9615f7c
Author: Kris Maglione <jg@suckless.org>
Date: Tue, 13 Feb 2007 13:45:36 -0500
Fix scaling of new columns.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/area.c b/area.c
@@ -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;
@@ -58,9 +60,6 @@ create_area(View *v, Area *pos, uint w) {
a->next = *p;
*p = a;
- if(pos)
- scale_view(v, screen->rect.width);
-
if(a == v->area)
a->floating = True;
if((!v->sel) ||