X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=53a7c3c1b1cc706f76d9aebf3fd0a689d2f58b84;hb=1c1d09f3e9eb18175f48bcc212d07684577ba4a6;hp=6de4f8ac54f6bc8562851a688d10976aa11ace72;hpb=dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519;p=dwm.git diff --git a/main.c b/main.c index 6de4f8a..53a7c3c 100644 --- a/main.c +++ b/main.c @@ -19,8 +19,8 @@ char stext[1024]; Bool *seltag; -int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh; -unsigned int ntags, numlockmask; +int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh; +unsigned int master, ntags, numlockmask; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -136,7 +136,7 @@ setup(void) { sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); - master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; + master = MASTER; bx = by = 0; bw = sw;