[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 2021-08-19 16:17:02 -04:00 committed by Geoffrey McRae
parent 11a661ce3a
commit c0fa6c414c

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(