// MovingWindow = window we clicked on, could be a child window. We track it to preserve Focus and so that ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency.
@ -2414,7 +2413,6 @@ void ImGui::NewFrame()
{
ClearActiveID();
g.MovingWindow=NULL;
g.MovingWindowMoveId=0;
}
}
else
@ -2427,7 +2425,6 @@ void ImGui::NewFrame()
ClearActiveID();
}
g.MovingWindow=NULL;
g.MovingWindowMoveId=0;
}
// Delay saving settings so we don't spam disk too much
ImVec2ActiveIdClickOffset;// Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior)
ImGuiWindow*ActiveIdWindow;
ImGuiWindow*MovingWindow;// Track the window we clicked on (in order to preserve focus). The actually window that is moved is generally MovingWindow->RootWindow.