From f13d25a8df568d2fafe03c4b72caab239ac968f2 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 21 Jan 2010 23:09:07 +0000 Subject: [PATCH] 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 --- geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 1a8a87f14e..1e1729ca3b 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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())