X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=facbb4cbbf7094fae81274ec3aa6f00383a7df59;hb=2b13e7466f4912e3778bf59e6aec3065443f08fe;hp=daf07114dde297613ab6899cc22e3c97e0890fa2;hpb=0982e47408115de4a604d9365b1014ae6205b3a9;p=dwm.git 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;