X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/ce9a9934ec7f58398cc62f2653fcccae5fec1853..2b13e7466f4912e3778bf59e6aec3065443f08fe:/view.c diff --git a/view.c b/view.c index daf0711..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;