From 2d4018aa893bf93b5b97a7aad5956fb3adbd866d Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 11 Dec 2018 11:03:28 +0100 Subject: [PATCH] Docking: Fix io.ConfigWindowsMoveFromTitleBarOnly for docking branch. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 875c8352..e3456a0a 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3830,7 +3830,7 @@ void ImGui::EndFrame() if (g.HoveredRootWindow != NULL) { StartMouseMovingWindow(g.HoveredWindow); - if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(g.HoveredRootWindow->Flags & ImGuiWindowFlags_NoTitleBar)) + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && (!(g.HoveredRootWindow->Flags & ImGuiWindowFlags_NoTitleBar) || g.HoveredWindow->RootWindowDockStop->DockIsActive)) if (!g.HoveredRootWindow->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) g.MovingWindow = NULL; }