diff --git a/imgui.cpp b/imgui.cpp index d1651cf3..5110b07a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7687,8 +7687,10 @@ ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id); if (viewport) { - viewport->Pos = pos; - viewport->Size = size; + if (!viewport->PlatformRequestMove) + viewport->Pos = pos; + if (!viewport->PlatformRequestResize) + viewport->Size = size; } else {