diff --git a/imgui.cpp b/imgui.cpp index 298bdcc6..acac2268 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7214,6 +7214,7 @@ static void ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImG if (g.Windows[n]->Viewport == old_viewport) SetWindowViewport(g.Windows[n], viewport); SetWindowViewport(window, viewport); + BringWindowToDisplayFront(window); } // Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)