[hackers] [wmii] Fixed collapsed state of frames when switching from Colstack to Colmax

From: Anthony Martin <ality_AT_suckless.org>
Date: Thu Feb 15 11:35:44 2007

changeset: 1876:36f591c0a6b3
user: Anthony Martin <ality_AT_suckless.org>
date: Thu Feb 15 02:31:12 2007 -0800
summary: Fixed collapsed state of frames when switching from Colstack to Colmax

diff -r 6403f4afb78f -r 36f591c0a6b3 column.c
--- a/column.c Thu Feb 15 02:43:33 2007 -0500
+++ b/column.c Thu Feb 15 02:31:12 2007 -0800
@@ -162,15 +162,14 @@ arrange_column(Area *a, Bool dirty) {
                 }
                 break;
         case Colstack:
- for(f=a->frame; f; f=f->anext) {
- f->collapsed = True;
- if(f == a->sel)
- f->collapsed = False;
- }
+ for(f=a->frame; f; f=f->anext)
+ f->collapsed = (f == a->sel) ? False : True;
                 break;
         case Colmax:
- for(f=a->frame; f; f=f->anext)
+ for(f=a->frame; f; f=f->anext) {
+ f->collapsed = False;
                         f->rect = a->rect;
+ }
                 goto resize;
         default:
                 break;
Received on Thu Feb 15 2007 - 11:35:44 UTC

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