[client] core: never allow warp when the overlay is active
This commit is contained in:
1 parent
ff01a197f3
commit
38ddfc0b61
1 file changed
+3
-4
+3
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user