mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-16 17:53:14 +02:00
Popups: Closes popup at the time of FocusWindow(). Fixes right-click from closing all popups instead of aiming at the hovered popup level (regression in 1.67's ae76a1fd
).
This commit is contained in:
@ -2209,6 +2209,13 @@ static void ShowDemoWindowPopups()
|
||||
if (ImGui::BeginMenu("Sub-menu"))
|
||||
{
|
||||
ImGui::MenuItem("Click me");
|
||||
if (ImGui::Button("Stacked Popup"))
|
||||
ImGui::OpenPopup("another popup");
|
||||
if (ImGui::BeginPopup("another popup"))
|
||||
{
|
||||
ImGui::Text("I am the last one here.");
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
|
Reference in New Issue
Block a user