Docking: Fix io.ConfigWindowsMoveFromTitleBarOnly for docking branch.

This commit is contained in:
omar 2018-12-11 11:03:28 +01:00
parent e6439e1a16
commit 2d4018aa89

View File

@ -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;
}