From 1da24af6eea1b561143b9e5d91c4b0c055606676 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 19 Jan 2021 05:38:25 +1100 Subject: [PATCH] [client] mouse: do not warp the cursor if it's outside the window --- client/src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index ae429f7b..701f80fd 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -897,6 +897,9 @@ void spiceClipboardRequest(const SpiceDataType type) static void warpPointer(int x, int y, bool exiting) { + if (!g_cursor.inWindow) + return; + if (g_cursor.warpState == WARP_STATE_OFF) return;