Skip to content

Commit

Permalink
Merge Keep cursor clipping when no cursor is present (pr-3083)
Browse files Browse the repository at this point in the history
7c3c893 - fix(nui/core): keep cursor clipping when no cursor is present
  • Loading branch information
prikolium-cfx committed Feb 5, 2025
2 parents fc70254 + 7c3c893 commit 7dab2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/nui-core/src/CefInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7dab2cd

Please sign in to comment.