mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-28 03:12:04 +00:00
Viewports: Setting focus from Platform/OS sets corresponding focus at Dear ImGui level. (#6299)
This commit is contained in:
@@ -7088,7 +7088,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user