mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
Docking: BeginDocked() doesn't need to rely on tab bar data (will allow removing tab bar).
This commit is contained in:
parent
c7619d4a6a
commit
7a5196601e
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue