yet another cleanup

master
Anselm R Garbe 2008-04-03 14:39:19 +01:00
parent d477fb6927
commit 0e21794e02
1 changed files with 2 additions and 2 deletions

4
dwm.c
View File

@ -1191,9 +1191,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
if(c->minax != c->maxax && c->minay != c->maxay if(c->minax != c->maxax && c->minay != c->maxay
&& c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0) && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0)
{ {
if (w * c->maxay > h * c->maxax) if(w * c->maxay > h * c->maxax)
w = h * c->maxax / c->maxay; w = h * c->maxax / c->maxay;
else if (w * c->minay < h * c->minax) else if(w * c->minay < h * c->minax)
h = w * c->minay / c->minax; h = w * c->minay / c->minax;
} }