This reverts commit 03f5cd6ca128090f71df7959e0f92c6b40076184.
@@ -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;