[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.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-20 13:21:26 +10:00
1 parent 11a661ce3a
commit c0fa6c414c
1 file changed
+1 -1
+1 -1
View File
@@ -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(