Browse Source

removed temporary wildcard handling

master
Anselm R Garbe 17 years ago
parent
commit
6dfa7cac56
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      dwm.c

+ 2
- 6
dwm.c View File

@ -240,7 +240,7 @@ Window root, barwin;
void void
applyrules(Client *c) { applyrules(Client *c) {
unsigned int i, j;
unsigned int i;
Bool matched = False; Bool matched = False;
Rule *r; Rule *r;
XClassHint ch = { 0 }; XClassHint ch = { 0 };
@ -254,11 +254,7 @@ applyrules(Client *c) {
&& (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) { && (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) {
c->isfloating = r->isfloating; c->isfloating = r->isfloating;
if(r->tag) { if(r->tag) {
if(r->tag[0] == '*' && r->tag[1] == 0)
for(j = 0; j < LENGTH(tags); i++)
c->tags[j] = True;
else
c->tags[idxoftag(r->tag)] = True;
c->tags[idxoftag(r->tag)] = True;
matched = True; matched = True;
} }
} }


Loading…
Cancel
Save