From c0fa6c414cb989332119e3794557caac01e2b00a Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 19 Aug 2021 16:17:02 -0400 Subject: [PATCH] [client] spice: do not warp host cursor if guest cursor is not visible This avoids warping the host cursor when the guest-side warp has not finished, which will result in the host cursor exiting at the wrong position if it exits at that moment. --- client/src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/core.c b/client/src/core.c index 3a778ebb..e7b2be18 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -320,7 +320,7 @@ void core_handleGuestMouseUpdate(void) if (!util_guestCurToLocal(&localPos)) return; - if (g_state.overlayInput) + if (g_state.overlayInput || !g_cursor.inView) return; g_state.ds->guestPointerUpdated(