X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=5dab0db43cfcba4c44681fdea794748c0c04a181;hb=5a3bea2d69c8ad864667de5142a9777aa41e1448;hp=0727c2ab563afb80ef5d8a07102acf8caa6be189;hpb=b55bd709ee6d0b09c141bf5ffe0647866e0374ef;p=dwm.git diff --git a/main.c b/main.c index 0727c2a..5dab0db 100644 --- a/main.c +++ b/main.c @@ -19,8 +19,8 @@ char stext[1024]; Bool *seltag; -int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; -unsigned int ntags, numlockmask, modew; +int bx, by, bw, bh, bmw, mw, screen, sx, sy, sw, sh; +unsigned int ntags, numlockmask; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -129,7 +129,7 @@ setup() dc.status[ColFG] = getcolor(STATUSFGCOLOR); setfont(FONT); - modew = 0; + bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL); sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen);