summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index a336d6585..30ce10192 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2197,7 +2197,7 @@ static void HandleKeyScrolling()
}
}
-void MouseLoop(MouseClick click, int mousewheel)
+static void MouseLoop(MouseClick click, int mousewheel)
{
DecreaseWindowCounters();
HandlePlacePresize();
@@ -2340,6 +2340,11 @@ void HandleMouseEvents()
}
MouseLoop(click, mousewheel);
+
+ /* We have moved the mouse the required distance,
+ * no need to move it at any later time. */
+ _cursor.delta.x = 0;
+ _cursor.delta.y = 0;
}
/**