X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=b627e512346cb0d8b1ea12d84b88d95bfbb6e596;hb=10885d349a8426f0a55f34e78a2592267e8e55be;hp=b3c753e97e45f89777a3a6e5f75cc17728086a2b;hpb=d800ec05ff63451193a0b858c114f5144534c2a1;p=dwm.git diff --git a/main.c b/main.c index b3c753e..b627e51 100644 --- a/main.c +++ b/main.c @@ -19,8 +19,8 @@ char stext[1024]; Bool *seltag; -int bx, by, bw, bh, bmw, mw, 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; @@ -38,7 +38,7 @@ static int (*xerrorxlib)(Display *, XErrorEvent *); static Bool otherwm, readin; static void -cleanup() { +cleanup(void) { close(STDIN_FILENO); while(sel) { resize(sel, True, TopLeft); @@ -58,7 +58,7 @@ cleanup() { } static void -scan() { +scan(void) { unsigned int i, num; Window *wins, d1, d2; XWindowAttributes wa; @@ -79,7 +79,7 @@ scan() { } static void -setup() { +setup(void) { int i, j; unsigned int mask; Window w; @@ -128,12 +128,12 @@ setup() { dc.status[ColBG] = getcolor(STATUSBGCOLOR); dc.status[ColFG] = getcolor(STATUSFGCOLOR); setfont(FONT); - - bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL); + + bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); - mw = (sw * MASTERW) / 100; + master = MASTER; bx = by = 0; bw = sw;