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:
parent
e4aeef4b9f
commit
7d81a166f9
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue