Fixed calculation on drag distance in Client::handleMoveResize to properly handle decoration padding, consistently with calculation of

"moveOffset" in Client::processDecorationButtonPress (in events.cpp).

BUG: 223366


svn path=/trunk/KDE/kdebase/workspace/; revision=1078291
This commit is contained in:
Hugo Pereira Da Costa 2010-01-21 23:09:07 +00:00
parent 302a245d0e
commit f13d25a8df

View file

@ -2951,7 +2951,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
if ( !moveResizeMode )
{
QPoint p( QPoint( x, y ) - moveOffset );
QPoint p( QPoint( x - padding_left, y - padding_top ) - moveOffset );
if (p.manhattanLength() >= 6)
{
if( !startMoveResize())