mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 02:18:12 +00:00
[client] overlay: realign cursor when turning off overlay
This is only done in non-capture mode to avoid messing up games.
This commit is contained in:
@@ -668,5 +668,11 @@ void core_updateOverlayState(void)
|
|||||||
core_setGrabQuiet(wasGrabbed);
|
core_setGrabQuiet(wasGrabbed);
|
||||||
core_invalidatePointer(true);
|
core_invalidatePointer(true);
|
||||||
app_invalidateWindow(false);
|
app_invalidateWindow(false);
|
||||||
|
|
||||||
|
if (!g_cursor.grab)
|
||||||
|
{
|
||||||
|
g_cursor.realign = true;
|
||||||
|
core_handleMouseNormal(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user