From 38ddfc0b619ab6fae3c8cb687d576d4e071cc3fe Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 5 Aug 2021 05:48:59 +1000 Subject: [PATCH] [client] core: never allow warp when the overlay is active --- client/src/core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index cad2db6f..bfcd6a3c 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -147,10 +147,9 @@ void core_setGrabQuiet(bool enable) bool core_warpPointer(int x, int y, bool exiting) { - if (!g_cursor.inWindow && !exiting) - return false; - - if (g_cursor.warpState == WARP_STATE_OFF) + if ((!g_cursor.inWindow && !exiting) || + g_state.overlayInput || + g_cursor.warpState == WARP_STATE_OFF) return false; if (exiting)