X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=da209a9640ab18ef90a987cf7922aebc529f1af0;hb=ec7a5ffff146d71f16d4d9de78db0f1044aa9bc9;hp=c3526aa6d78989efabced020a0ef21fa27051ab7;hpb=ac24f132dba7e59d9d9ff98d984f5e0b0d20fd09;p=dwm.git diff --git a/main.c b/main.c index c3526aa..da209a9 100644 --- a/main.c +++ b/main.c @@ -20,7 +20,7 @@ char stext[1024]; Bool *seltag; int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah; -unsigned int master, ntags, numlockmask; +unsigned int master, nmaster, ntags, numlockmask; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -40,9 +40,9 @@ static Bool otherwm, readin; static void cleanup(void) { close(STDIN_FILENO); - while(clients) { - resize(clients, True, TopLeft); - unmanage(clients); + while(stack) { + resize(stack, True, TopLeft); + unmanage(stack); } if(dc.font.set) XFreeFontSet(dpy, dc.font.set); @@ -133,6 +133,7 @@ setup(void) { sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); master = MASTER; + nmaster = NMASTER; /* bar */ bx = sx; by = sy;