1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-14 00:34:18 +00:00

Docking: Fix docked window contents not rendering when switching with CTRL+Tab.

(regression from 8eb8689).
This commit is contained in:
Rokas Kupstys 2022-07-12 16:21:44 +03:00 committed by ocornut
parent 77637fd936
commit cb8ead1f71
3 changed files with 5 additions and 3 deletions

View file

@ -7694,7 +7694,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar)
// CTRL+TAB can override visible tab temporarily
if (g.NavWindowingTarget != NULL && g.NavWindowingTarget->DockNode && g.NavWindowingTarget->DockNode->TabBar == tab_bar)
tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->ID;
tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->TabId;
// Update scrolling
if (scroll_to_tab_id != 0)