소스 검색

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!)