diff --git a/imgui.cpp b/imgui.cpp index 6ef58a62..daf39ec7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6238,6 +6238,8 @@ void ImGui::FocusWindow(ImGuiWindow* window) g.NavMousePosDirty = true; if (window && window->NavLastChildNavWindow != NULL) window->NavLastChildNavWindow = NULL; + if (g.NavInitRequest) + g.NavInitRequest = false; } // Passing NULL allow to disable keyboard focus