main.c
changeset 261 d6fd632d861c
parent 242 cd15de32e173
child 262 d659a2dce2b5
--- 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);