From 3a29d1cf0307436d051dffbf100bd47ff2829ba7 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 12 Jan 2021 11:49:27 +1100 Subject: [PATCH] [client] spice: zero the error accumulators when switching grab modes --- client/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index 94d758d9..651c1531 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1159,6 +1159,8 @@ static void setGrabQuiet(bool enable) return; g_cursor.grab = enable; + g_cursor.acc.x = 0.0; + g_cursor.acc.y = 0.0; if (enable) {