From: Thomas Fischer Date: Sat, 29 Sep 2018 00:34:18 +0000 (-0700) Subject: Correctly calculate max_aspect X-Git-Tag: 4.16~26^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ede8b9365ead4785172cdbb8a95b9795ea7867f;p=i3%2Fi3 Correctly calculate max_aspect --- diff --git a/src/handlers.c b/src/handlers.c index 2cd45b79..c76f1935 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1072,7 +1072,7 @@ static bool handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t stat /* Convert numerator/denominator to a double */ double min_aspect = (double)size_hints.min_aspect_num / size_hints.min_aspect_den; - double max_aspect = (double)size_hints.max_aspect_num / size_hints.min_aspect_den; + double max_aspect = (double)size_hints.max_aspect_num / size_hints.max_aspect_den; DLOG("Aspect ratio set: minimum %f, maximum %f\n", min_aspect, max_aspect); DLOG("width = %f, height = %f\n", width, height);