mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-12 12:09:02 +08:00
Docking: Focus fix (missing line in 8bac6d4
)
This commit is contained in:
parent
5105c6c0d0
commit
8cac70d8af
@ -5811,7 +5811,7 @@ void ImGui::FocusWindow(ImGuiWindow* window)
|
||||
|
||||
// Select in dock node
|
||||
if (window->DockNode && window->DockNode->TabBar)
|
||||
window->DockNode->TabBar->SelectedTabId = window->ID;
|
||||
window->DockNode->TabBar->SelectedTabId = window->DockNode->TabBar->NextSelectedTabId = window->ID;
|
||||
|
||||
// Move the root window to the top of the pile
|
||||
if (window->RootWindow)
|
||||
@ -12301,6 +12301,8 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open)
|
||||
|
||||
// Bind to our dock node
|
||||
ImGuiDockNode* dock_node = window->DockNode;
|
||||
if (dock_node != NULL)
|
||||
IM_ASSERT(window->DockId == dock_node->ID);
|
||||
if (window->DockId != 0 && dock_node == NULL)
|
||||
{
|
||||
dock_node = DockContextFindNodeByID(ctx, window->DockId);
|
||||
|
Loading…
Reference in New Issue
Block a user