fixed
This commit is contained in:
parent
26f41c9055
commit
addc52c948
4
dwm.c
4
dwm.c
|
@ -250,8 +250,7 @@ applyrules(Client *c) {
|
||||||
XClassHint ch = { 0 };
|
XClassHint ch = { 0 };
|
||||||
|
|
||||||
/* rule matching */
|
/* rule matching */
|
||||||
if(XGetClassHint(dpy, c->win, &ch) == 0)
|
if(XGetClassHint(dpy, c->win, &ch)) {
|
||||||
return;
|
|
||||||
for(i = 0; i < LENGTH(rules); i++) {
|
for(i = 0; i < LENGTH(rules); i++) {
|
||||||
r = &rules[i];
|
r = &rules[i];
|
||||||
if((!r->title || strstr(c->name, r->title))
|
if((!r->title || strstr(c->name, r->title))
|
||||||
|
@ -265,6 +264,7 @@ applyrules(Client *c) {
|
||||||
XFree(ch.res_class);
|
XFree(ch.res_class);
|
||||||
if(ch.res_name)
|
if(ch.res_name)
|
||||||
XFree(ch.res_name);
|
XFree(ch.res_name);
|
||||||
|
}
|
||||||
if(!c->tags)
|
if(!c->tags)
|
||||||
c->tags = tagset[seltags];
|
c->tags = tagset[seltags];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue