Obey window size hints when doing unrestricted resizes.

BUG: 196326

svn path=/trunk/KDE/kdebase/workspace/; revision=987516
This commit is contained in:
Lucas Murray 2009-06-26 09:06:48 +00:00
parent ae71d8300f
commit 9842c3247e

View file

@ -2980,7 +2980,9 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
break;
}
}
}
// Always obey size hints, even when in "unrestricted" mode
QSize size = adjustedSize( moveResizeGeom.size(), sizemode );
// the new topleft and bottomright corners (after checking size constrains), if they'll be needed
topleft = QPoint( moveResizeGeom.right() - size.width() + 1, moveResizeGeom.bottom() - size.height() + 1 );
@ -3020,7 +3022,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
abort();
break;
}
}
if( moveResizeGeom.size() != previousMoveResizeGeom.size())
update = true;
}