aewl
changeset 638:276238ad9516
small simplification to dotile() (thx to Ross for this hint)
author | arg@mig29 |
---|---|
date | Wed, 20 Dec 2006 12:07:05 +0100 |
parents | 376051cfc618 |
children | 226ef912c093 |
files | view.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- a/view.c Tue Dec 19 11:38:08 2006 +0100 1.2 +++ b/view.c Wed Dec 20 12:07:05 2006 +0100 1.3 @@ -69,13 +69,12 @@ 1.4 1.5 void 1.6 dotile(void) { 1.7 - unsigned int i, n, mpx, stackw, th; 1.8 + unsigned int i, n, mpw, th; 1.9 Client *c; 1.10 1.11 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 1.12 n++; 1.13 - mpx = (waw * master) / 1000; 1.14 - stackw = waw - mpx; 1.15 + mpw = (waw * master) / 1000; 1.16 1.17 for(i = 0, c = clients; c; c = c->next) 1.18 if(isvisible(c)) { 1.19 @@ -91,13 +90,13 @@ 1.20 c->h = wah - 2 * BORDERPX; 1.21 } 1.22 else if(i == 0) { /* master window */ 1.23 - c->w = mpx - 2 * BORDERPX; 1.24 + c->w = mpw - 2 * BORDERPX; 1.25 c->h = wah - 2 * BORDERPX; 1.26 th = wah / (n - 1); 1.27 } 1.28 else { /* tile window */ 1.29 - c->x += mpx; 1.30 - c->w = stackw - 2 * BORDERPX; 1.31 + c->x += mpw; 1.32 + c->w = (waw - mpw) - 2 * BORDERPX; 1.33 if(th > bh) { 1.34 c->y += (i - 1) * th; 1.35 c->h = th - 2 * BORDERPX;