From 69408d384d55b69f66ea52f8767eb577a34d9ae2 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Thu, 5 Oct 2006 13:47:30 +0200 Subject: simplified dotile(), removed misleading line --- view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 61144df..6ca82d1 100644 --- a/view.c +++ b/view.c @@ -103,18 +103,19 @@ dofloat(Arg *arg) { */ 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; } -- cgit v1.2.3-13-gbd6f