X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=9dd501a6ed836194fa07f7d550fda2ee6408eac1;hb=bb0a328978d0af43ecd86b61d1a351dc5d933702;hp=9acf30da47b46f70b38d2c09c09a9696c6cc76ec;hpb=0e21794e02069ae71a1e70f8d0c2c22c4d1050bc;p=dwm.git diff --git a/dwm.c b/dwm.c index 9acf30d..9dd501a 100644 --- a/dwm.c +++ b/dwm.c @@ -261,9 +261,9 @@ applyrules(Client *c) { XGetClassHint(dpy, c->win, &ch); for(i = 0; i < LENGTH(rules); i++) { r = &rules[i]; - if((r->title && strstr(c->name, r->title)) - || (ch.res_class && r->class && strstr(ch.res_class, r->class)) - || (ch.res_name && r->instance && strstr(ch.res_name, r->instance))) + if((!r->title || strstr(c->name, r->title)) + && (!ch.res_class || !r->class || strstr(ch.res_class, r->class)) + && (!ch.res_name || !r->instance || strstr(ch.res_name, r->instance))) { c->isfloating = r->isfloating; if(r->tag) { @@ -1068,7 +1068,7 @@ monocle(void) { Client *c; for(c = clients; c; c = c->next) - if(isvisible(c)) + if((lt->isfloating || !c->isfloating) && isvisible(c)) resize(c, mox, moy, mow - 2 * c->bw, moh - 2 * c->bw, RESIZEHINTS); }