Skip to content

Commit

Permalink
Fixed incorrect assert in FocusTopMostWindowUnderOne() preventing chi…
Browse files Browse the repository at this point in the history
…ld+popup from being used. (#6915, #718)
  • Loading branch information
ocornut committed Oct 12, 2023
1 parent 5053d79 commit 0860671
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7145,7 +7145,6 @@ void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWind
{
// 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.
ImGuiWindow* window = g.WindowsFocusOrder[i];
IM_ASSERT(window == window->RootWindow);
if (window == ignore_window || !window->WasActive)
continue;
if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs))
Expand Down

0 comments on commit 0860671

Please sign in to comment.