X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=20450db98dba70990cd0df28a619a72bd2af4f1f;hb=5d9146ff372ae0c5196e290fb2c1f828d4137e20;hp=5ed8981c4a13d1bb0788d145d2f8232210856317;hpb=6e22ccf7b1602b33624692eefd51b6398ffa5454;p=dwm.git diff --git a/main.c b/main.c index 5ed8981..20450db 100644 --- a/main.c +++ b/main.c @@ -19,7 +19,7 @@ char stext[256]; int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; -unsigned int master, nmaster, ntags, numlockmask; +unsigned int ntags, numlockmask; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool *seltag; @@ -117,7 +117,7 @@ setup(void) { wa.cursor = cursor[CurNormal]; XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); grabkeys(); - initrregs(); + compileregexps(); for(ntags = 0; tags[ntags]; ntags++); seltag = emallocz(sizeof(Bool) * ntags); seltag[0] = True; @@ -133,8 +133,6 @@ setup(void) { sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); - master = MASTER; - nmaster = NMASTER; bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); /* bar */ dc.h = bh = dc.font.height + 2;