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

This commit is contained in:
arg@10ksloc.org
2006-08-03 12:12:26 +02:00
parent 666b4563a0
commit b35575574b
8 changed files with 66 additions and 71 deletions

3
main.c
View File

@ -85,6 +85,7 @@ xerrorstart(Display *dsply, XErrorEvent *ee)
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 @@ main(int argc, char *argv[])
grabkeys();
for(ntags = 0; tags[ntags]; ntags++);
/* style */
dc.bg = getcolor(BGCOLOR);
dc.fg = getcolor(FGCOLOR);