From dacc5736500d6393cd6ce2a495f407dd5ae11831 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Jan 2021 01:23:48 +1100 Subject: [PATCH] [client] spice: align the guest pointer to local when entering the view --- client/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index 1eadee50..e9d4bb6c 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1275,6 +1275,8 @@ void app_handleMouseNormal(double ex, double ey) g_cursor.pos.y < g_state.dstRect.y + g_state.dstRect.h; setCursorInView(inView); + if (inView) + g_cursor.realign = true; } /* nothing to do if we are outside the viewport */