mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-19 06:26:35 +00:00
parent
80d51c692a
commit
f902435a53
@ -10770,7 +10770,8 @@ ImGuiDockNode::ImGuiDockNode(ImGuiID id)
|
|||||||
LastFocusedNodeID = 0;
|
LastFocusedNodeID = 0;
|
||||||
SelectedTabID = 0;
|
SelectedTabID = 0;
|
||||||
WantCloseTabID = 0;
|
WantCloseTabID = 0;
|
||||||
AutorityForPos = AutorityForSize = AutorityForViewport = ImGuiDataAutority_Auto;
|
AutorityForPos = AutorityForSize = ImGuiDataAutority_DockNode;
|
||||||
|
AutorityForViewport = ImGuiDataAutority_Auto;
|
||||||
IsVisible = true;
|
IsVisible = true;
|
||||||
IsFocused = IsCentralNode = IsHiddenTabBar = HasCloseButton = HasCollapseButton = false;
|
IsFocused = IsCentralNode = IsHiddenTabBar = HasCloseButton = HasCollapseButton = false;
|
||||||
WantCloseAll = WantLockSizeOnce = WantMouseMove = WantHiddenTabBarUpdate = WantHiddenTabBarToggle = false;
|
WantCloseAll = WantLockSizeOnce = WantMouseMove = WantHiddenTabBarUpdate = WantHiddenTabBarToggle = false;
|
||||||
@ -11257,12 +11258,14 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
|
|||||||
// after the dock host window, losing their top-most status.
|
// after the dock host window, losing their top-most status.
|
||||||
if (node->HostWindow->Appearing)
|
if (node->HostWindow->Appearing)
|
||||||
BringWindowToDisplayFront(node->HostWindow);
|
BringWindowToDisplayFront(node->HostWindow);
|
||||||
|
|
||||||
|
node->AutorityForPos = node->AutorityForSize = node->AutorityForViewport = ImGuiDataAutority_Auto;
|
||||||
}
|
}
|
||||||
else if (node->ParentNode)
|
else if (node->ParentNode)
|
||||||
{
|
{
|
||||||
node->HostWindow = host_window = node->ParentNode->HostWindow;
|
node->HostWindow = host_window = node->ParentNode->HostWindow;
|
||||||
|
node->AutorityForPos = node->AutorityForSize = node->AutorityForViewport = ImGuiDataAutority_Auto;
|
||||||
}
|
}
|
||||||
node->AutorityForPos = node->AutorityForSize = node->AutorityForViewport = ImGuiDataAutority_Auto;
|
|
||||||
if (node->WantMouseMove && node->HostWindow)
|
if (node->WantMouseMove && node->HostWindow)
|
||||||
DockNodeStartMouseMovingWindow(node, node->HostWindow);
|
DockNodeStartMouseMovingWindow(node, node->HostWindow);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user