From: Daniel Cousens Date: Tue, 10 Oct 2017 21:10:45 +0000 (+1100) Subject: simplify isfixed conditions X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=6aa8e37efe22c8a2a7713d9a437491c564c04b7e;p=dwm.git simplify isfixed conditions --- diff --git a/dwm.c b/dwm.c index a5ce993..4782343 100644 --- a/dwm.c +++ b/dwm.c @@ -1981,8 +1981,7 @@ updatesizehints(Client *c) c->maxa = (float)size.max_aspect.x / size.max_aspect.y; } else c->maxa = c->mina = 0.0; - c->isfixed = (c->maxw && c->minw && c->maxh && c->minh - && c->maxw == c->minw && c->maxh == c->minh); + c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh); } void