1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-23 02:04:22 +00:00

Docking: Fixed one-frame flickering on reappearing windows binding to a dock node where a later-submitted window was already bound.

This commit is contained in:
ocornut 2023-06-23 15:47:34 +02:00
parent e4aeef4b9f
commit 7d81a166f9
2 changed files with 3 additions and 1 deletions

View file

@ -18407,7 +18407,7 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open)
{
if (node->State == ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing)
window->DockIsActive = true;
if (node->Windows.Size > 1)
if (node->Windows.Size > 1 && window->Appearing) // Only hide appearing window
DockNodeHideWindowDuringHostWindowCreation(window);
return;
}