From 0ede8b9365ead4785172cdbb8a95b9795ea7867f Mon Sep 17 00:00:00 2001 From: Thomas Fischer Date: Fri, 28 Sep 2018 17:34:18 -0700 Subject: [PATCH] Correctly calculate max_aspect --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5