simplify isfixed conditions
authorDaniel Cousens <github@dcousens.com>
Tue, 10 Oct 2017 21:10:45 +0000 (08:10 +1100)
committerAnselm R Garbe <garbeam@gmail.com>
Wed, 11 Oct 2017 07:46:28 +0000 (09:46 +0200)
dwm.c

diff --git a/dwm.c b/dwm.c
index a5ce993..4782343 100644 (file)
--- 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