diff --git a/geometry.cpp b/geometry.cpp
index e89c35d950..b97f9887d5 100644
--- a/geometry.cpp
+++ b/geometry.cpp
@@ -44,6 +44,7 @@ along with this program. If not, see .
#include
#include
+#include
namespace KWin
{
@@ -3006,7 +3007,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
if ( !moveResizeMode )
{
QPoint p( QPoint( x - padding_left, y - padding_top ) - moveOffset );
- if (p.manhattanLength() >= 6)
+ if (p.manhattanLength() >= KGlobalSettings::dndEventDelay())
{
if( !startMoveResize())
{