diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp
index 76a8aebcba..4fddad2cf7 100644
--- a/effects/desktopgrid/desktopgrid.cpp
+++ b/effects/desktopgrid/desktopgrid.cpp
@@ -29,6 +29,7 @@ along with this program. If not, see .
#include
#include
+#include
#include
#include
#include
@@ -36,7 +37,6 @@ along with this program. If not, see .
#include
#include
#include
-#include
#include
#include
#include
@@ -483,7 +483,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e)
if (e->type() == QEvent::MouseMove) {
int d = posToDesktop(me->pos());
if (windowMove != NULL &&
- (me->pos() - dragStartPos).manhattanLength() > KGlobalSettings::dndEventDelay()) {
+ (me->pos() - dragStartPos).manhattanLength() > QApplication::startDragDistance()) {
// Handle window moving
if (!wasWindowMove) { // Activate on move
if (isUsingPresentWindows() && windowMove->isOnAllDesktops()) {
@@ -536,7 +536,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e)
}
effects->addRepaintFull();
} else if ((me->buttons() & Qt::LeftButton) && !wasDesktopMove &&
- (me->pos() - dragStartPos).manhattanLength() > KGlobalSettings::dndEventDelay()) {
+ (me->pos() - dragStartPos).manhattanLength() > QApplication::startDragDistance()) {
wasDesktopMove = true;
effects->defineCursor(Qt::ClosedHandCursor);
}
diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp
index 7dcb25e95d..77a8cea312 100755
--- a/effects/presentwindows/presentwindows.cpp
+++ b/effects/presentwindows/presentwindows.cpp
@@ -29,7 +29,6 @@ along with this program. If not, see .
#include
#include
#include
-#include
#include
#include
@@ -633,7 +632,7 @@ void PresentWindowsEffect::windowInputMouseEvent(QEvent *e)
} else if (highlightCandidate && !m_motionManager.areWindowsMoving())
setHighlightedWindow(highlightCandidate);
if (e->type() == QEvent::MouseMove && m_dragWindow) {
- if ((me->pos() - m_dragStart).manhattanLength() > KGlobalSettings::dndEventDelay() && !m_dragInProgress) {
+ if ((me->pos() - m_dragStart).manhattanLength() > QApplication::startDragDistance() && !m_dragInProgress) {
m_dragInProgress = true;
effects->defineCursor(Qt::ForbiddenCursor);
}
diff --git a/geometry.cpp b/geometry.cpp
index 6e1a3e0bdf..ab5b04c930 100644
--- a/geometry.cpp
+++ b/geometry.cpp
@@ -50,7 +50,6 @@ along with this program. If not, see .
#include
#include
-#include
#include "outline.h"
namespace KWin
@@ -2761,7 +2760,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() >= KGlobalSettings::dndEventDelay()) {
+ if (p.manhattanLength() >= QApplication::startDragDistance()) {
if (!startMoveResize()) {
buttonDown = false;
updateCursor();