mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-06 04:20:08 +00:00
Popups: Fix BeginPopupContextVoid() when clicking over the area made unavailable by a modal. (#1636)
This commit is contained in:
parent
37eb89371b
commit
6e138504c1
2 changed files with 3 additions and 1 deletions
|
|
@ -7924,7 +7924,8 @@ bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiMouseButton mouse_but
|
|||
str_id = "void_context";
|
||||
ImGuiID id = window->GetID(str_id);
|
||||
if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow))
|
||||
OpenPopupEx(id);
|
||||
if (GetTopMostPopupModal() == NULL)
|
||||
OpenPopupEx(id);
|
||||
return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoSavedSettings);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue