commit 30410108eb7e9e8b977d448f611659d58b2a6992 from: Anselm R Garbe date: Tue Sep 2 21:36:06 2008 UTC applied Peter Hartlichs aspect revert fix commit - 753e0e048e13fe7cbace7c07917d26081a483eba commit + 30410108eb7e9e8b977d448f611659d58b2a6992 blob - bdef7555b7e9d10f4c00bed34126c4f42be51cd3 blob + 4ed5760f4bb75946adc3822817e3ab6a70a11c46 --- dwm.c +++ dwm.c @@ -1056,9 +1056,9 @@ resize(Client *c, int x, int y, int w, int h, Bool siz /* adjust for aspect limits */ if(c->mina > 0 && c->maxa > 0) { - if(c->maxa < (float)(w / h)) + if(c->maxa < (float)w / h) w = h * c->maxa; - else if(c->mina < (float)(h / w)) + else if(c->mina < (float)h / w) h = w * c->mina; }