From cd06fc251fe792badfb9aa0d471a24bb066d8b86 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 3 Jan 2021 17:21:04 +1100 Subject: [PATCH] [client] spice: don't process cursor input when the local cursor is oob --- client/src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index d9548947..46f35d18 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -890,6 +890,12 @@ static void handleMouseMoveEvent(int ex, int ey) warpMouse(state.windowW / 2, state.windowH / 2); } + if (!inView) + { + /* cursor outside of the bounds, don't do anything */ + return; + } + if (state.scale && params.scaleMouseInput && !state.grabMouse) { state.accX += (float)delta.x * state.scaleX;