Skip to content

Commit 0860671

Browse files
committed
Fixed incorrect assert in FocusTopMostWindowUnderOne() preventing child+popup from being used. (ocornut#6915, ocornut#718)
1 parent 5053d79 commit 0860671

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

imgui.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7145,7 +7145,6 @@ void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWind
71457145
{
71467146
// We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user.
71477147
ImGuiWindow* window = g.WindowsFocusOrder[i];
7148-
IM_ASSERT(window == window->RootWindow);
71497148
if (window == ignore_window || !window->WasActive)
71507149
continue;
71517150
if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs))

0 commit comments

Comments
 (0)