Mercurial > dwm-meillo
diff view.c @ 526:c71952fa3c7c 1.8
simplified dotile(), removed misleading line
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Thu, 05 Oct 2006 13:47:30 +0200 |
parents | 1a9a0877650c |
children | c0fffe6c207e |
line wrap: on
line diff
--- a/view.c Thu Oct 05 13:44:48 2006 +0200 +++ b/view.c Thu Oct 05 13:47:30 2006 +0200 @@ -103,18 +103,19 @@ */ 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; }