aewl
diff tag.c @ 104:3a708f113f55
implemented fallback for too many clients in stacked mode
author | arg@10ksloc.org |
---|---|
date | Wed, 19 Jul 2006 13:36:04 +0200 |
parents | a19556fe83b5 |
children | dfa5cd0969a6 |
line diff
1.1 --- a/tag.c Wed Jul 19 13:30:18 2006 +0200 1.2 +++ b/tag.c Wed Jul 19 13:36:04 2006 +0200 1.3 @@ -96,12 +96,18 @@ 1.4 *c->w = mw - 2 * c->border; 1.5 *c->h = sh - 2 * c->border - bh; 1.6 } 1.7 - else { 1.8 + else if(h > bh) { 1.9 *c->x = sx + mw; 1.10 *c->y = sy + (i - 1) * h + bh; 1.11 *c->w = w - 2 * c->border; 1.12 *c->h = h - 2 * c->border; 1.13 } 1.14 + else { /* fallback if h < bh */ 1.15 + *c->x = sx + mw; 1.16 + *c->y = sy + bh; 1.17 + *c->w = w - 2 * c->border; 1.18 + *c->h = sh - 2 * c->border - bh; 1.19 + } 1.20 resize(c, False, TopLeft); 1.21 i++; 1.22 }