X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/fde58d5e637d700981eaed69d172d3dbfcaee215..6e9387793b06980b2420bf64106044cabf63e490:/dwm.c?ds=sidebyside diff --git a/dwm.c b/dwm.c index 9746c1d..3cff294 100644 --- a/dwm.c +++ b/dwm.c @@ -1306,7 +1306,7 @@ void setmfact(const void *arg) { double d = *((double*) arg); - if(!d || lt->arrange != tile) + if(!d || !lt->arrange) return; d = d < 1.0 ? d + mfact : d - 1.0; if(d < 0.1 || d > 0.9) @@ -1719,7 +1719,7 @@ void zoom(const void *arg) { Client *c = sel; - if(!lt->arrange || sel->isfloating) + if(ismax || !lt->arrange || (sel && sel->isfloating)) return; if(c == nexttiled(clients)) if(!c || !(c = nexttiled(c->next)))