From 14d05e7c725a4a07136ceb123cf760272afc1a87 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 29 Sep 2006 12:38:27 +0200 Subject: first step to a more flexible dotile() algorithm --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 7cd3a327..a1fdde16 100644 --- a/main.c +++ b/main.c @@ -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 @@ setup(void) { 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; -- cgit v1.2.3