mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 09:27:00 +00:00
Viewports: Fixed viewport merge code not testing the Minimized flag correctly. (#3118)
This commit is contained in:
parent
c142540705
commit
71eb4034eb
@ -10679,7 +10679,11 @@ static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window)
|
||||
static bool ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* viewport)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
if (!(viewport->Flags & (ImGuiViewportFlags_CanHostOtherWindows | ImGuiViewportFlags_Minimized)) || window->Viewport == viewport)
|
||||
if (window->Viewport == viewport)
|
||||
return false;
|
||||
if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) == 0)
|
||||
return false;
|
||||
if ((viewport->Flags & ImGuiViewportFlags_Minimized) != 0)
|
||||
return false;
|
||||
if (!viewport->GetMainRect().Contains(window->Rect()))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user