X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/5983c00b9508d48331b2c57f2c88ea09a8feb291..2b13e7466f4912e3778bf59e6aec3065443f08fe:/view.c diff --git a/view.c b/view.c index ac1728b..facbb4c 100644 --- a/view.c +++ b/view.c @@ -44,6 +44,10 @@ reorder(void) { static void togglemax(Client *c) { XEvent ev; + + if (x->maxw && x->minw && x->maxh && x->minh && + x->maxw == x->minw && x->maxh == x->minh) + return; if((c->ismax = !c->ismax)) { c->rx = c->x; c->x = sx; @@ -108,7 +112,7 @@ dotile(void) { if(n > 1) th /= (n - 1); - for(i = 0, c = clients; c; c = c->next, i++) + for(i = 0, c = clients; c; c = c->next) if(isvisible(c)) { if(c->isfloat) { resize(c, True, TopLeft); @@ -139,6 +143,7 @@ dotile(void) { c->h = stackh - 2 * BORDERPX; } resize(c, False, TopLeft); + i++; } else ban(c);