mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 16:51:31 +00:00
[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:
@@ -325,9 +325,6 @@ void core_setGrabQuiet(bool enable)
|
|||||||
if (!g_params.captureInputOnly)
|
if (!g_params.captureInputOnly)
|
||||||
applyView(g_state.ds->isPointerGrabbed(), false);
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user