diff -r 243bf6783c7c -r d6fd632d861c main.c --- a/main.c Fri Aug 11 18:11:39 2006 +0200 +++ b/main.c Fri Aug 11 18:37:41 2006 +0200 @@ -83,7 +83,7 @@ /* extern */ char stext[1024]; -int tsel = DEFTAG; +Bool *tsel; int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; unsigned int ntags; Atom wmatom[WMLast], netatom[NetLast]; @@ -213,6 +213,8 @@ initrregs(); for(ntags = 0; tags[ntags]; ntags++); + tsel = emallocz(sizeof(Bool) * ntags); + tsel[DEFTAG] = True; /* style */ dc.bg = getcolor(BGCOLOR);