diff --git a/ChangeLog b/ChangeLog index bd9866ead..c2f967b76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-18 Havoc Pennington + + * src/window.c (constrain_size): fix min aspect handling, + patch from Martin Garton #94943 + 2002-10-18 Andras Timar * configure.in: Added hu to ALL_LINGUAS. diff --git a/src/window.c b/src/window.c index f86aa105a..a1360dddf 100644 --- a/src/window.c +++ b/src/window.c @@ -5603,7 +5603,7 @@ constrain_size (MetaWindow *window, if (min_aspect * height > width) { - delta = FLOOR (height - width * min_aspect, window->size_hints.height_inc); + delta = FLOOR (height - width / min_aspect, window->size_hints.height_inc); if (height - delta >= window->size_hints.min_height) height -= delta; else