瀏覽代碼

Viewport: UpdateTryMergeWindowIntoHostViewport() calls BringWindowToDisplayFront() - possible now that BringWindowToFocusFront() is a different function.

omar 6 年之前
父節點
當前提交
1f78e08427
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui.cpp

+ 1 - 0
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!)