mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-05 06:57:13 +08:00
parent
4158cba1ff
commit
2e5860b5a0
@ -13724,8 +13724,7 @@ void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open)
|
||||
// Calling SetNextWindowPos() undock windows by default (by setting PosUndock)
|
||||
bool want_undock = false;
|
||||
want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0;
|
||||
want_undock |= (g.NextWindowData.PosCond && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock);
|
||||
g.NextWindowData.PosUndock = false;
|
||||
want_undock |= (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock;
|
||||
if (want_undock)
|
||||
{
|
||||
DockContextProcessUndockWindow(ctx, window);
|
||||
|
Loading…
Reference in New Issue
Block a user