From 7c3c893f92fd504d14362570bdba5a28b2776c6f Mon Sep 17 00:00:00 2001 From: Maximilian Wittfeld Date: Sun, 19 Jan 2025 21:51:54 +0100 Subject: [PATCH] fix(nui/core): keep cursor clipping when no cursor is present --- code/components/nui-core/src/CefInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/components/nui-core/src/CefInput.cpp b/code/components/nui-core/src/CefInput.cpp index b18f016167..2230b7b5f8 100644 --- a/code/components/nui-core/src/CefInput.cpp +++ b/code/components/nui-core/src/CefInput.cpp @@ -353,7 +353,7 @@ static HookFunction initFunction([] () { g_nuiGi->QueryMayLockCursor.Connect([](int& argPtr) { - if (HasFocus() && !g_keepInput) + if (HasFocus() && g_hasCursor && !g_keepInput) { argPtr = 0; }