diff options
Diffstat (limited to '')
| -rw-r--r-- | tag.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | typedef struct { | 14 | typedef struct { |
| 15 | const char *pattern; | 15 | const char *pattern; |
| 16 | char *tags[TLast]; | 16 | Bool tags[TLast]; |
| 17 | Bool isfloat; | 17 | Bool isfloat; |
| 18 | } Rule; | 18 | } Rule; |
| 19 | 19 | ||
| @@ -30,7 +30,7 @@ appendtag(Arg *arg) | |||
| 30 | if(!sel) | 30 | if(!sel) |
| 31 | return; | 31 | return; |
| 32 | 32 | ||
| 33 | sel->tags[arg->i] = tags[arg->i]; | 33 | sel->tags[arg->i] = True; |
| 34 | arrange(NULL); | 34 | arrange(NULL); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| @@ -146,7 +146,7 @@ replacetag(Arg *arg) | |||
| 146 | return; | 146 | return; |
| 147 | 147 | ||
| 148 | for(i = 0; i < TLast; i++) | 148 | for(i = 0; i < TLast; i++) |
| 149 | sel->tags[i] = NULL; | 149 | sel->tags[i] = False; |
| 150 | appendtag(arg); | 150 | appendtag(arg); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| @@ -171,7 +171,7 @@ settags(Client *c) | |||
| 171 | for(j = 0; j < TLast; j++) { | 171 | for(j = 0; j < TLast; j++) { |
| 172 | if(rule[i].tags[j]) | 172 | if(rule[i].tags[j]) |
| 173 | matched = True; | 173 | matched = True; |
| 174 | c->tags[j] = rule[i].tags[j]; | 174 | c->tags[j] = True; |
| 175 | } | 175 | } |
| 176 | c->isfloat = rule[i].isfloat; | 176 | c->isfloat = rule[i].isfloat; |
| 177 | } | 177 | } |
| @@ -184,7 +184,7 @@ settags(Client *c) | |||
| 184 | XFree(ch.res_name); | 184 | XFree(ch.res_name); |
| 185 | } | 185 | } |
| 186 | if(!matched) | 186 | if(!matched) |
| 187 | c->tags[tsel] = tags[tsel]; | 187 | c->tags[tsel] = True; |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | void | 190 | void |
