simplify isfixed conditions

This commit is contained in:
Daniel Cousens 2017-10-11 08:10:45 +11:00 committed by Anselm R Garbe
parent ceac8c91ff
commit 6aa8e37efe

3
dwm.c
View File

@ -1981,8 +1981,7 @@ updatesizehints(Client *c)
c->maxa = (float)size.max_aspect.x / size.max_aspect.y; c->maxa = (float)size.max_aspect.x / size.max_aspect.y;
} else } else
c->maxa = c->mina = 0.0; c->maxa = c->mina = 0.0;
c->isfixed = (c->maxw && c->minw && c->maxh && c->minh c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh);
&& c->maxw == c->minw && c->maxh == c->minh);
} }
void void