mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-08 22:09:54 +02:00
This commit is contained in:
@ -2085,7 +2085,10 @@ void ImGui::NewFrame()
|
||||
if (ImGuiWindow* modal_window = GetFrontMostModalRootWindow())
|
||||
{
|
||||
g.ModalWindowDarkeningRatio = ImMin(g.ModalWindowDarkeningRatio + g.IO.DeltaTime * 6.0f, 1.0f);
|
||||
if (g.HoveredRootWindow != modal_window)
|
||||
ImGuiWindow* window = g.HoveredRootWindow;
|
||||
while (window && window != modal_window)
|
||||
window = window->ParentWindow;
|
||||
if (!window)
|
||||
g.HoveredRootWindow = g.HoveredWindow = NULL;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user