dwm-meillo
diff main.c @ 505:2c29d74b11dc
first step to a more flexible dotile() algorithm
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 29 Sep 2006 12:38:27 +0200 |
parents | be4f90c03582 |
children | ede48935f2b3 |
line diff
1.1 --- a/main.c Thu Sep 28 21:29:20 2006 +0200 1.2 +++ b/main.c Fri Sep 29 12:38:27 2006 +0200 1.3 @@ -19,7 +19,7 @@ 1.4 1.5 char stext[1024]; 1.6 Bool *seltag; 1.7 -int bx, by, bw, bh, bmw, mw, screen, sx, sy, sw, sh; 1.8 +int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh; 1.9 unsigned int ntags, numlockmask; 1.10 Atom wmatom[WMLast], netatom[NetLast]; 1.11 Bool running = True; 1.12 @@ -133,7 +133,7 @@ 1.13 sx = sy = 0; 1.14 sw = DisplayWidth(dpy, screen); 1.15 sh = DisplayHeight(dpy, screen); 1.16 - mw = (sw * MASTERW) / 100; 1.17 + master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; 1.18 1.19 bx = by = 0; 1.20 bw = sw;