mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 09:27:00 +00: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)
|
// Calling SetNextWindowPos() undock windows by default (by setting PosUndock)
|
||||||
bool want_undock = false;
|
bool want_undock = false;
|
||||||
want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0;
|
want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0;
|
||||||
want_undock |= (g.NextWindowData.PosCond && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock);
|
want_undock |= (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock;
|
||||||
g.NextWindowData.PosUndock = false;
|
|
||||||
if (want_undock)
|
if (want_undock)
|
||||||
{
|
{
|
||||||
DockContextProcessUndockWindow(ctx, window);
|
DockContextProcessUndockWindow(ctx, window);
|
||||||
|
Loading…
Reference in New Issue
Block a user