diff options
| author | arg@10ksloc.org <unknown> | 2006-08-03 10:55:07 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-03 10:55:07 +0200 |
| commit | 8cc7f3bace087dfb024a23115c211d82b35614ae (patch) | |
| tree | 5288e485d560dff018832a5160a19e6c69e93dd4 /tag.c | |
| parent | implemented the idea presented by Sander for dwm target (diff) | |
| download | dwm-8cc7f3bace087dfb024a23115c211d82b35614ae.tar.gz dwm-8cc7f3bace087dfb024a23115c211d82b35614ae.zip | |
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
Diffstat (limited to 'tag.c')
| -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 |
