From 7a5196601e96ccc880ea00e5aed0ef3a786edad2 Mon Sep 17 00:00:00 2001 From: omar Date: Sat, 16 Mar 2019 18:13:24 +0100 Subject: [PATCH] Docking: BeginDocked() doesn't need to rely on tab bar data (will allow removing tab bar). --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 6ed50ed6..d928b6a7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13475,7 +13475,7 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open) return; // When the window is selected we mark it as visible. - if (node->TabBar && node->TabBar->VisibleTabId == window->ID) + if (node->VisibleWindow == window) window->DockTabIsVisible = true; // When we are about to select this tab (which will only be visible on the _next frame_), flag it with a non-zero HiddenFramesForResize.