You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
Modal 'File Menu' Does not close when clicked off menu (IE Cancel menu dropdown)
ImGui::Begin("Dummy Window", &open);
if (ImGui::Button("Test"))
ImGui::OpenPopup("Broken Modal");
ImGui::SetNextWindowSize(ImVec2(480, 480));
if (ImGui::BeginPopupModal("Broken Modal", NULL, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_MenuBar))
{
if (ImGui::BeginMenuBar())
{
if (ImGui::BeginMenu("File"))
{
if (ImGui::MenuItem("CLOSE"))
{
ImGui::CloseCurrentPopup();
}
ImGui::EndMenu();
}
ImGui::EndMenuBar();
}
if (ImGui::Button("Close (try File->Close)"))
ImGui::CloseCurrentPopup();
ImGui::Text("Click 'File', then click off anywhere...\n"
"File menu, should have been closed");
ImGui::EndPopup();
}
ImGui::End();
XXX (please provide as much context as possible)
Screenshots/Video
2021-12-09.15-12-58.mp4
Video of me clicking off the File Menu, however it doesn't close.
Version Info
Backends/OS
#include "backends/imgui_impl_win32.cpp"
#include "backends/imgui_impl_dx11.cpp"
Issue
Modal 'File Menu' Does not close when clicked off menu (IE Cancel menu dropdown)
ImGui::Begin("Dummy Window", &open);
if (ImGui::Button("Test"))
ImGui::OpenPopup("Broken Modal");
XXX (please provide as much context as possible)
Screenshots/Video
2021-12-09.15-12-58.mp4
Video of me clicking off the File Menu, however it doesn't close.