| 7374 | } |
| 7375 | |
| 7376 | void ImGui::EndMainMenuBar() |
| 7377 | { |
| 7378 | EndMenuBar(); |
| 7379 | |
| 7380 | // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window |
| 7381 | // FIXME: With this strategy we won't be able to restore a NULL focus. |
| 7382 | ImGuiContext& g = *GImGui; |
| 7383 | if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) |
| 7384 | FocusTopMostWindowUnderOne(g.NavWindow, NULL, NULL, ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild); |
| 7385 | |
| 7386 | End(); |
| 7387 | } |
| 7388 | |
| 7389 | static bool IsRootOfOpenMenuSet() |
| 7390 | { |
nothing calls this directly
no outgoing calls
no test coverage detected