main.c
changeset 178 e848966a1ac6
parent 164 21071ae1fe68
child 191 56fee1dc9d53
--- a/main.c	Thu Aug 03 11:38:26 2006 +0200
+++ b/main.c	Thu Aug 03 12:12:26 2006 +0200
@@ -85,6 +85,7 @@
 char stext[1024];
 int tsel = DEFTAG;
 int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
+unsigned int ntags;
 Atom wmatom[WMLast], netatom[NetLast];
 Bool running = True;
 Bool issel = True;
@@ -210,6 +211,8 @@
 
 	grabkeys();
 
+	for(ntags = 0; tags[ntags]; ntags++);
+
 	/* style */
 	dc.bg = getcolor(BGCOLOR);
 	dc.fg = getcolor(FGCOLOR);