This commit is contained in:
Anselm R Garbe 2008-08-29 11:29:42 +01:00
parent 26f41c9055
commit addc52c948

4
dwm.c
View file

@ -250,8 +250,7 @@ applyrules(Client *c) {
XClassHint ch = { 0 };
/* rule matching */
if(XGetClassHint(dpy, c->win, &ch) == 0)
return;
if(XGetClassHint(dpy, c->win, &ch)) {
for(i = 0; i < LENGTH(rules); i++) {
r = &rules[i];
if((!r->title || strstr(c->name, r->title))
@ -265,6 +264,7 @@ applyrules(Client *c) {
XFree(ch.res_class);
if(ch.res_name)
XFree(ch.res_name);
}
if(!c->tags)
c->tags = tagset[seltags];
}