diff --git a/imgui.cpp b/imgui.cpp index 57b24157..368db256 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -4159,6 +4159,7 @@ void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFl ImGuiWindow* window = ImGui::GetCurrentWindow(); ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); if (flags & ImGuiNavHighlightFlags_TypeDefault) { const float THICKNESS = 2.0f;