From 19a22ac8ca848034c2ea91b4a7acb0666bec217d Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 8 Aug 2026 15:50:39 -0400 Subject: [PATCH] [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. --- client/src/core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index 663f9579..a44f7315 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -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(); } } }