JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make single tiled client use master width
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index a6e4fc0..27c4f92 100644 (file)
--- 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);