[client] core: always align mouse on uncapture

Previously, we only aligned the mouse in the client when the cursor is
visible. This wasn't a problem because the cursor position in the guest
took precedence and we only used relative input.

Since we now have absolute input, the absolute position of the cursor in
the client matters at all times when we exit capture, so we always call
`core_alignToGuest` now.
This commit is contained in:
Quantum
2026-08-08 15:50:39 -04:00
committed by Geoffrey McRae
parent 62d2b37b30
commit 19a22ac8ca

View File

@@ -325,10 +325,7 @@ void core_setGrabQuiet(bool enable)
if (!g_params.captureInputOnly)
applyView(g_state.ds->isPointerGrabbed(), false);
/* if exiting capture when input on capture only we need to align the
* local cursor to the guest's location before it is shown. */
if (g_params.captureInputOnly || !g_params.hideMouse)
core_alignToGuest();
core_alignToGuest();
}
}
}