X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;h=0ae288c50c4ec8d647a58e478c143663034b2576;hp=6d84a77a4d4335f56ab5c438bf0a2d2b81c2e491;hb=86953bd68249662b5d7a9ae6741744ab8bf30aa1;hpb=a923298d3577dca0e69fd70edbef56c7822258e3 diff --git a/main.c b/main.c index 6d84a77..0ae288c 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,7 @@ unsigned int bh, ntags; unsigned int bpos = BARPOS; unsigned int numlockmask = 0; Atom dwmconfig, wmatom[WMLast], netatom[NetLast]; -Bool *seltag; +Bool *seltags; Bool selscreen = True; Client *clients = NULL; Client *sel = NULL; @@ -57,7 +57,7 @@ cleanup(void) { XFreeCursor(dpy, cursor[CurMove]); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); XSync(dpy, False); - free(seltag); + free(seltags); } static unsigned long @@ -170,8 +170,8 @@ setup(void) { grabkeys(); compileregs(); for(ntags = 0; tags[ntags]; ntags++); - seltag = emallocz(sizeof(Bool) * ntags); - seltag[0] = True; + seltags = emallocz(sizeof(Bool) * ntags); + seltags[0] = True; /* style */ dc.norm[ColBorder] = initcolor(NORMBORDERCOLOR); dc.norm[ColBG] = initcolor(NORMBGCOLOR);