mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-29 04:35:49 +03:00
Viewports: fixed an issue where the implicit "Debug" window while hidden would erroneously interfere with merging secondary viewports into the main viewport.
This commit is contained in:
parent
4cb21e4a1e
commit
00abd2c325
2 changed files with 6 additions and 2 deletions
|
|
@ -16781,7 +16781,7 @@ static bool ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImG
|
|||
|
||||
for (ImGuiViewportP* viewport_obstructing : g.Viewports)
|
||||
{
|
||||
if (viewport_obstructing == viewport_src || viewport_obstructing == viewport_dst)
|
||||
if (viewport_obstructing == viewport_src || viewport_obstructing == viewport_dst || !viewport_obstructing->PlatformWindowCreated)
|
||||
continue;
|
||||
if (viewport_obstructing->GetMainRect().Overlaps(window->Rect()))
|
||||
if (IsViewportAbove(viewport_obstructing, viewport_dst))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue