From 8563ef3ce4de14745d75c7c2a9443e77f23f69c3 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 30 Jan 2019 21:13:07 +0100 Subject: [PATCH] Viewport: Popups by default merge into parent/host viewport as they have no decoration (same as menu/child). (#1542) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index cbd9a3a18..83470b3ee 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7754,7 +7754,7 @@ static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window) ImGuiContext& g = *GImGui; if (g.IO.ConfigViewportsNoAutoMerge && (g.ConfigFlagsForFrame & ImGuiConfigFlags_ViewportsEnable)) if (!window->DockIsActive) - if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)) == 0) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) == 0) return true; return false; }