diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-15 10:51:37 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-15 10:51:37 +0100 |
| commit | 6dfa7cac56d70ebf84a02691d7de1279bf34e223 (patch) | |
| tree | 223c98971c49f3d6582baab019fe13d46210f585 /dwm.c | |
| parent | added wild-card handling for tags (diff) | |
| download | dwm-6dfa7cac56d70ebf84a02691d7de1279bf34e223.tar.gz dwm-6dfa7cac56d70ebf84a02691d7de1279bf34e223.zip | |
removed temporary wildcard handling
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 2 insertions, 6 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, j; | 243 | unsigned int i; |
| 244 | Bool matched = False; | 244 | Bool matched = False; |
| 245 | Rule *r; | 245 | Rule *r; |
| 246 | XClassHint ch = { 0 }; | 246 | XClassHint ch = { 0 }; |
| @@ -254,11 +254,7 @@ 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 | if(r->tag[0] == '*' && r->tag[1] == 0) | 257 | c->tags[idxoftag(r->tag)] = True; |
| 258 | for(j = 0; j < LENGTH(tags); i++) | ||
| 259 | c->tags[j] = True; | ||
| 260 | else | ||
| 261 | c->tags[idxoftag(r->tag)] = True; | ||
| 262 | matched = True; | 258 | matched = True; |
| 263 | } | 259 | } |
| 264 | } | 260 | } |
