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 /draw.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 'draw.c')
| -rw-r--r-- | draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -114,7 +114,7 @@ drawstatus() | |||
| 114 | drawtext(NULL, !istile, False); | 114 | drawtext(NULL, !istile, False); |
| 115 | 115 | ||
| 116 | dc.w = 0; | 116 | dc.w = 0; |
| 117 | for(i = 0; i < TLast; i++) { | 117 | for(i = 0; i < ntags; i++) { |
| 118 | dc.x += dc.w; | 118 | dc.x += dc.w; |
| 119 | dc.w = textw(tags[i]); | 119 | dc.w = textw(tags[i]); |
| 120 | if(istile) | 120 | if(istile) |
| @@ -153,7 +153,7 @@ drawtitle(Client *c) | |||
| 153 | dc.x = dc.y = 0; | 153 | dc.x = dc.y = 0; |
| 154 | 154 | ||
| 155 | dc.w = 0; | 155 | dc.w = 0; |
| 156 | for(i = 0; i < TLast; i++) { | 156 | for(i = 0; i < ntags; i++) { |
| 157 | if(c->tags[i]) { | 157 | if(c->tags[i]) { |
| 158 | dc.x += dc.w; | 158 | dc.x += dc.w; |
| 159 | dc.w = textw(tags[i]); | 159 | dc.w = textw(tags[i]); |
