X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=27c4f92a32e29b506f0f3f5b91f42b2888046cd4;hp=a6e4fc04debc727c811ab3fe20427ffa15a71e6f;hb=63b3ab7e87e516c09ee9eb28354aa7b123640103;hpb=448e7e919595434668ef6dad22311291eaa1d4c7 diff --git a/dwm.c b/dwm.c index a6e4fc0..27c4f92 100644 --- a/dwm.c +++ b/dwm.c @@ -306,7 +306,7 @@ applyrules(Client *c) { for(i = 0; i < LENGTH(rules); i++) { r = &rules[i]; - if((!r->title || strstr(c->name, r->title)) + if((!r->title || c->name == strstr(c->name, r->title)) && (!r->class || strstr(class, r->class)) && (!r->instance || strstr(instance, r->instance))) { @@ -1687,7 +1687,7 @@ tile(Monitor *m) { if(n > m->nmaster) mw = m->nmaster ? m->ww * m->mfact : 0; else - mw = m->ww; + mw = m->ww * m->mfact; for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) if(i < m->nmaster) { h = (m->wh - my) / (MIN(n, m->nmaster) - i);