From 8b96023457d1705d8716561562dd85d41c5f03f2 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 14 Oct 2025 18:08:36 +0200 Subject: [PATCH] Updated Docking (markdown) --- Docking.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Docking.md b/Docking.md index fcc8c95..19ea0fd 100644 --- a/Docking.md +++ b/Docking.md @@ -96,7 +96,9 @@ That's pretty much what it does. A `DockSpace()` is an arbitrary location inside a window, where other windows may be docked into. - Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! -- Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with `ImGuiDockNodeFlags_KeepAliveOnly`, otherwise windows docked into it will automatically be undocked if the dockspace stops being visible. + - (because of this constraint, the implicit `"Debug"` window can not be docked into an explicit DockSpace() node, because that window is submitted as part of the part of the NewFrame() call. An easy workaround is that you can create your own implicit `"Debug##2"` window after submitting a dockspace, leave it in the window stack for anyone to use) +- Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. + - If you have e.g. multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with `ImGuiDockNodeFlags_KeepAliveOnly`. ## Programmatically setting up docking layout (DockBuider api)