@ -3555,6 +3555,8 @@ static void ImGui::UpdateViewports()
continue ;
continue ;
}
}
if ( ( g . IO . ConfigFlags & ImGuiConfigFlags_ViewportsEnable ) )
{
// Apply Position and Size (from Platform Window to ImGui) if requested.
// Apply Position and Size (from Platform Window to ImGui) if requested.
// We do it early in the frame instead of waiting for UpdatePlatformWindows() to avoid a frame of lag when moving/resizing using OS facilities.
// We do it early in the frame instead of waiting for UpdatePlatformWindows() to avoid a frame of lag when moving/resizing using OS facilities.
if ( viewport - > PlatformRequestMove )
if ( viewport - > PlatformRequestMove )
@ -3571,6 +3573,7 @@ static void ImGui::UpdateViewports()
// Update monitor (we'll use this info to clamp windows and save windows lost in a removed monitor)
// Update monitor (we'll use this info to clamp windows and save windows lost in a removed monitor)
viewport - > PlatformMonitor = FindPlatformMonitorForRect ( viewport - > GetRect ( ) ) ;
viewport - > PlatformMonitor = FindPlatformMonitorForRect ( viewport - > GetRect ( ) ) ;
}
// Update DPI scale
// Update DPI scale
float new_dpi_scale ;
float new_dpi_scale ;