Focus: merge extra param for FocusTopMostWindowUnderOne() from docking branch to facilitate merge.

This commit is contained in:
ocornut
2023-04-21 19:05:58 +02:00
parent 00d3f9295e
commit f0fe1957a8
3 changed files with 14 additions and 12 deletions

View File

@ -7084,7 +7084,7 @@ void ImGui::EndMainMenuBar()
// FIXME: With this strategy we won't be able to restore a NULL focus.
ImGuiContext& g = *GImGui;
if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest)
FocusTopMostWindowUnderOne(g.NavWindow, NULL);
FocusTopMostWindowUnderOne(g.NavWindow, NULL, NULL);
End();
}