Prefer keeping fixed width when keeping aspect ratio.

BUG: 87298

svn path=/trunk/kdebase/kwin/; revision=393796
This commit is contained in:
Luboš Luňák 2005-02-28 13:44:19 +00:00
parent 47075ef04e
commit e808718c0a

View file

@ -1121,6 +1121,8 @@ QSize Client::sizeForClientSize( const QSize& wsize, Sizemode mode, bool noframe
switch( mode )
{
case SizemodeAny:
#if 0 // make SizemodeAny equal to SizemodeFixedW - prefer keeping fixed width,
// so that changing aspect ratio to a different value and back keeps the same size (#87298)
{
ASPECT_CHECK_SHRINK_H_GROW_W
ASPECT_CHECK_SHRINK_W_GROW_H
@ -1128,6 +1130,7 @@ QSize Client::sizeForClientSize( const QSize& wsize, Sizemode mode, bool noframe
ASPECT_CHECK_GROW_W
break;
}
#endif
case SizemodeFixedW:
{
// the checks are order so that attempts to modify height are first