mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
fix min aspect handling, patch from Martin Garton #94943
2002-10-18 Havoc Pennington <hp@redhat.com> * src/window.c (constrain_size): fix min aspect handling, patch from Martin Garton #94943
This commit is contained in:

committed by
Havoc Pennington

parent
149e8d12cd
commit
44a63a9911
@ -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
|
||||
|
Reference in New Issue
Block a user