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;
-Bool maximized = False;
Client *clients = NULL;
Client *sel = NULL;
Client *stack = NULL;
static Bool otherwm, readin;
static void
-cleanup() {
+cleanup(void) {
close(STDIN_FILENO);
while(sel) {
resize(sel, True, TopLeft);
}
static void
-scan() {
+scan(void) {
unsigned int i, num;
Window *wins, d1, d2;
XWindowAttributes wa;
}
static void
-setup() {
+setup(void) {
int i, j;
unsigned int mask;
Window w;
dc.status[ColBG] = getcolor(STATUSBGCOLOR);
dc.status[ColFG] = getcolor(STATUSFGCOLOR);
setfont(FONT);
-
- bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL);
+
+ bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ?
+ textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL);
+ bmw = bmw > textw(FLOATSYMBOL) ?
+ bmw : textw(FLOATSYMBOL);
sx = sy = 0;
sw = DisplayWidth(dpy, screen);
sh = DisplayHeight(dpy, screen);
- mw = (sw * MASTERW) / 100;
+ master = MASTER;
bx = by = 0;
bw = sw;