|
|
@ -17,7 +17,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* extern */
|
|
|
|
/* extern */
|
|
|
|
|
|
|
|
|
|
|
|
char stext[1024];
|
|
|
|
char stext[1024], mtext[32];
|
|
|
|
Bool *seltag;
|
|
|
|
Bool *seltag;
|
|
|
|
int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah;
|
|
|
|
int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah;
|
|
|
|
unsigned int master, nmaster, ntags, numlockmask;
|
|
|
|
unsigned int master, nmaster, ntags, numlockmask;
|
|
|
@ -128,12 +128,13 @@ setup(void) {
|
|
|
|
dc.status[ColFG] = getcolor(STATUSFGCOLOR);
|
|
|
|
dc.status[ColFG] = getcolor(STATUSFGCOLOR);
|
|
|
|
setfont(FONT);
|
|
|
|
setfont(FONT);
|
|
|
|
/* geometry */
|
|
|
|
/* geometry */
|
|
|
|
bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL);
|
|
|
|
|
|
|
|
sx = sy = 0;
|
|
|
|
sx = sy = 0;
|
|
|
|
sw = DisplayWidth(dpy, screen);
|
|
|
|
sw = DisplayWidth(dpy, screen);
|
|
|
|
sh = DisplayHeight(dpy, screen);
|
|
|
|
sh = DisplayHeight(dpy, screen);
|
|
|
|
master = MASTER;
|
|
|
|
master = MASTER;
|
|
|
|
nmaster = NMASTER;
|
|
|
|
nmaster = NMASTER;
|
|
|
|
|
|
|
|
snprintf(mtext, sizeof mtext, arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, nmaster);
|
|
|
|
|
|
|
|
bmw = textw(mtext);
|
|
|
|
/* bar */
|
|
|
|
/* bar */
|
|
|
|
bx = sx;
|
|
|
|
bx = sx;
|
|
|
|
by = sy;
|
|
|
|
by = sy;
|
|
|
|