mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[client] spice: don't process cursor input when the local cursor is oob
This commit is contained in:
parent
029640f1b3
commit
cd06fc251f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user