[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:
Quantum 2022-01-24 00:15:47 -05:00 committed by Geoffrey McRae
parent 96fa8891c8
commit 71901414d1

View File

@ -668,5 +668,11 @@ void core_updateOverlayState(void)
core_setGrabQuiet(wasGrabbed);
core_invalidatePointer(true);
app_invalidateWindow(false);
if (!g_cursor.grab)
{
g_cursor.realign = true;
core_handleMouseNormal(0, 0);
}
}
}