summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index ee5b04093..f89c0abe1 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1513,6 +1513,9 @@ static bool HandleWindowDragging()
/* Get out immediately if no window is being dragged at all. */
if (!_dragging_window) return true;
+ /* If button still down, but cursor hasn't moved, there is nothing to do. */
+ if (_left_button_down && _cursor.delta.x == 0 && _cursor.delta.y == 0) return false;
+
/* Otherwise find the window... */
Window *w;
FOR_ALL_WINDOWS_FROM_BACK(w) {