all repos — dwm @ 69408d384d55b69f66ea52f8767eb577a34d9ae2

my dwm build

simplified dotile(), removed misleading line
Anselm R. Garbe arg@10kloc.org
Thu, 05 Oct 2006 13:47:30 +0200
commit

69408d384d55b69f66ea52f8767eb577a34d9ae2

parent

4aea423f066170f50390c746260ecd445262c98b

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M view.cview.c

@@ -103,18 +103,19 @@ * SSMMM SSSSS MMMSS

*/ void dotile(Arg *arg) { - int i, n, stackw, stackh, tw, th; - unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100; + unsigned int i, n, md, stackw, stackh, tw, th; Client *c; for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) n++; if(stackpos == StackBottom) { + md = ((sh - bh) * master) / 100; stackw = sw; stackh = sh - bh - md; } else { + md = (sw * master) / 100; stackw = sw - md; stackh = sh - bh; }