diff options
| author | arg@10ksloc.org <unknown> | 2006-08-03 12:12:26 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-03 12:12:26 +0200 |
| commit | b35575574be53a1b3be42d7037d2f432a19a3890 (patch) | |
| tree | 6be2344c68ec6590fa816bbd578e0f36fe21c0b8 /main.c | |
| parent | hotfix of settags (diff) | |
| download | dwm-b35575574be53a1b3be42d7037d2f432a19a3890.tar.gz dwm-b35575574be53a1b3be42d7037d2f432a19a3890.zip | |
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
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -85,6 +85,7 @@ xerrorstart(Display *dsply, XErrorEvent *ee) | |||
| 85 | char stext[1024]; | 85 | char stext[1024]; |
| 86 | int tsel = DEFTAG; | 86 | int tsel = DEFTAG; |
| 87 | int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; | 87 | int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
| 88 | unsigned int ntags; | ||
| 88 | Atom wmatom[WMLast], netatom[NetLast]; | 89 | Atom wmatom[WMLast], netatom[NetLast]; |
| 89 | Bool running = True; | 90 | Bool running = True; |
| 90 | Bool issel = True; | 91 | Bool issel = True; |
| @@ -210,6 +211,8 @@ main(int argc, char *argv[]) | |||
| 210 | 211 | ||
| 211 | grabkeys(); | 212 | grabkeys(); |
| 212 | 213 | ||
| 214 | for(ntags = 0; tags[ntags]; ntags++); | ||
| 215 | |||
| 213 | /* style */ | 216 | /* style */ |
| 214 | dc.bg = getcolor(BGCOLOR); | 217 | dc.bg = getcolor(BGCOLOR); |
| 215 | dc.fg = getcolor(FGCOLOR); | 218 | dc.fg = getcolor(FGCOLOR); |
