mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-16 01:33:14 +02:00
Docking: Fixed a bug undocking windows docked into a non-visible or _KeepAliveOnly dockspace. (#4757)
This commit is contained in:
@ -16157,7 +16157,7 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open)
|
||||
node->State = ImGuiDockNodeState_HostWindowVisible;
|
||||
|
||||
// Undock if we are submitted earlier than the host window
|
||||
if (window->BeginOrderWithinContext < node->HostWindow->BeginOrderWithinContext)
|
||||
if (!(node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) && window->BeginOrderWithinContext < node->HostWindow->BeginOrderWithinContext)
|
||||
{
|
||||
DockContextProcessUndockWindow(ctx, window);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user