X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/b55bd709ee6d0b09c141bf5ffe0647866e0374ef..6499fc4f938eb7e61ab3e25df3904db9c890c693:/main.c?ds=inline diff --git a/main.c b/main.c index 0727c2a..9856354 100644 --- a/main.c +++ b/main.c @@ -19,11 +19,12 @@ 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; +Bool maximized = False; Client *clients = NULL; Client *sel = NULL; Cursor cursor[CurLast]; @@ -129,7 +130,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);