]> git.sur5r.net Git - i3/i3/commitdiff
Correctly calculate max_aspect 3430/head
authorThomas Fischer <tjfischer98@gmail.com>
Sat, 29 Sep 2018 00:34:18 +0000 (17:34 -0700)
committerThomas Fischer <tjfischer98@gmail.com>
Sat, 29 Sep 2018 00:34:18 +0000 (17:34 -0700)
src/handlers.c

index 2cd45b7978fb4dc95318447b867742c474cf2843..c76f1935d34a1a34909391cad046fc12fae8cd30 100644 (file)
@@ -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);