diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-15 10:47:26 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-15 10:47:26 +0100 |
| commit | 71681c21a594260604779b96f46d51c82af11a03 (patch) | |
| tree | a99a7ab8ce228e871232ae30c6f25e8563896177 /dwm.c | |
| parent | applied nsz's another style patch (diff) | |
| download | dwm-71681c21a594260604779b96f46d51c82af11a03.tar.gz dwm-71681c21a594260604779b96f46d51c82af11a03.zip | |
added wild-card handling for tags
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -240,7 +240,7 @@ Window root, barwin; | |||
| 240 | 240 | ||
| 241 | void | 241 | void |
| 242 | applyrules(Client *c) { | 242 | applyrules(Client *c) { |
| 243 | unsigned int i; | 243 | unsigned int i, j; |
| 244 | Bool matched = False; | 244 | Bool matched = False; |
| 245 | Rule *r; | 245 | Rule *r; |
| 246 | XClassHint ch = { 0 }; | 246 | XClassHint ch = { 0 }; |
| @@ -254,7 +254,11 @@ applyrules(Client *c) { | |||
| 254 | && (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) { | 254 | && (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) { |
| 255 | c->isfloating = r->isfloating; | 255 | c->isfloating = r->isfloating; |
| 256 | if(r->tag) { | 256 | if(r->tag) { |
| 257 | c->tags[idxoftag(r->tag)] = True; | 257 | if(r->tag[0] == '*' && r->tag[1] == 0) |
| 258 | for(j = 0; j < LENGTH(tags); i++) | ||
| 259 | c->tags[j] = True; | ||
| 260 | else | ||
| 261 | c->tags[idxoftag(r->tag)] = True; | ||
| 258 | matched = True; | 262 | matched = True; |
| 259 | } | 263 | } |
| 260 | } | 264 | } |
