Skip to content

Commit 7b365fa

Browse files
committed
Nav: fixed another occurence of nav cursor briefly appearing when Tabbing with ImGuiConfigFlags_NavEnableKeyboard disabled. (#9214, #9218)
Amend 1566c96 + ea83628.
1 parent 87262dd commit 7b365fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imgui.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12970,6 +12970,10 @@ void ImGui::SetNavCursorVisibleAfterMove()
1297012970
ImGuiContext& g = *GImGui;
1297112971
if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs))
1297212972
g.NavCursorVisible = false;
12973+
else if (g.NavInputSource == ImGuiInputSource_Keyboard && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) == 0)
12974+
g.NavCursorVisible = false;
12975+
else if (g.NavInputSource == ImGuiInputSource_Gamepad && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0)
12976+
g.NavCursorVisible = false;
1297312977
else if (g.IO.ConfigNavCursorVisibleAuto)
1297412978
g.NavCursorVisible = true;
1297512979
g.NavHighlightItemUnderNav = g.NavMousePosDirty = true;

0 commit comments

Comments
 (0)