Mercurial > aewl
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 wrap: on
line diff
--- a/main.c Thu Sep 28 21:29:20 2006 +0200 +++ b/main.c Fri Sep 29 12:38:27 2006 +0200 @@ -19,7 +19,7 @@ char stext[1024]; Bool *seltag; -int bx, by, bw, bh, bmw, mw, screen, sx, sy, sw, sh; +int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh; unsigned int ntags, numlockmask; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; @@ -133,7 +133,7 @@ sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); - mw = (sw * MASTERW) / 100; + master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; bx = by = 0; bw = sw;