aewl

diff main.c @ 178:e848966a1ac6

removed TLast tag enum, now tags is simple defined as char *[] array, the rest is calculated correctly, rules take an int array for the tags
author arg@10ksloc.org
date Thu, 03 Aug 2006 12:12:26 +0200
parents 21071ae1fe68
children 56fee1dc9d53
line diff
     1.1 --- a/main.c	Thu Aug 03 11:38:26 2006 +0200
     1.2 +++ b/main.c	Thu Aug 03 12:12:26 2006 +0200
     1.3 @@ -85,6 +85,7 @@
     1.4  char stext[1024];
     1.5  int tsel = DEFTAG;
     1.6  int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
     1.7 +unsigned int ntags;
     1.8  Atom wmatom[WMLast], netatom[NetLast];
     1.9  Bool running = True;
    1.10  Bool issel = True;
    1.11 @@ -210,6 +211,8 @@
    1.12  
    1.13  	grabkeys();
    1.14  
    1.15 +	for(ntags = 0; tags[ntags]; ntags++);
    1.16 +
    1.17  	/* style */
    1.18  	dc.bg = getcolor(BGCOLOR);
    1.19  	dc.fg = getcolor(FGCOLOR);