mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-11 06:43:56 +00:00
[client] spice: zero the error accumulators when switching grab modes
This commit is contained in:
parent
8365419262
commit
3a29d1cf03
1 changed files with 2 additions and 0 deletions
|
@ -1159,6 +1159,8 @@ static void setGrabQuiet(bool enable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_cursor.grab = enable;
|
g_cursor.grab = enable;
|
||||||
|
g_cursor.acc.x = 0.0;
|
||||||
|
g_cursor.acc.y = 0.0;
|
||||||
|
|
||||||
if (enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue