[client] spice: don't process cursor input when the local cursor is oob

This commit is contained in:
Geoffrey McRae 2021-01-03 17:21:04 +11:00
parent 029640f1b3
commit cd06fc251f

View File

@ -890,6 +890,12 @@ static void handleMouseMoveEvent(int ex, int ey)
warpMouse(state.windowW / 2, state.windowH / 2);
}
if (!inView)
{
/* cursor outside of the bounds, don't do anything */
return;
}
if (state.scale && params.scaleMouseInput && !state.grabMouse)
{
state.accX += (float)delta.x * state.scaleX;