mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-26 08:13:45 +01:00
Docking: Fixed incomplete merge of 36e714a leading to undocking. #2109
This commit is contained in:
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…
x
Reference in New Issue
Block a user