[client] core: never allow warp when the overlay is active

This commit is contained in:
Geoffrey McRae 2021-08-05 05:48:59 +10:00
parent ff01a197f3
commit 38ddfc0b61

View File

@ -147,10 +147,9 @@ void core_setGrabQuiet(bool enable)
bool core_warpPointer(int x, int y, bool exiting) bool core_warpPointer(int x, int y, bool exiting)
{ {
if (!g_cursor.inWindow && !exiting) if ((!g_cursor.inWindow && !exiting) ||
return false; g_state.overlayInput ||
g_cursor.warpState == WARP_STATE_OFF)
if (g_cursor.warpState == WARP_STATE_OFF)
return false; return false;
if (exiting) if (exiting)