commit e2652df909bfb5c08a2993af7264d7503d130e7d
parent 5b23501285dd30436715a62249e256bbc1455ca0
Author: Kris Maglione <bsdaemon@wmii.de>
Date: Thu, 29 Jun 2006 22:28:38 -0400
Missed column.c in my last commit, somehow
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/cmd/wm/column.c b/cmd/wm/column.c
@@ -43,7 +43,9 @@ relax_column(Area *a)
if(!a->frame)
return;
- for(f=a->frame, frame_size=0; f; f=f->anext, frame_size++);
+ frame_size = 0;
+ for(f=a->frame; f; f=f->anext)
+ frame_size++;
switch(a->mode) {
case Coldefault:
@@ -152,10 +154,11 @@ arrange_column(Area *a, Bool dirty)
Frame *f;
unsigned int min_height = 2 * height_of_bar();
- if(!a->frame || a->floating)
+ if(a->floating || !a->frame)
return;
- for(f=a->frame; f; f=f->anext, num_frames++);
+ for(f=a->frame; f; f=f->anext)
+ num_frames++;
switch(a->mode) {
case Coldefault: