|
|
|
@ -2771,10 +2771,12 @@ void ImGui::EndFrame()
|
|
|
|
|
g.CurrentWindow->Active = false;
|
|
|
|
|
ImGui::End();
|
|
|
|
|
|
|
|
|
|
// Click to focus window and start moving (after we're done with all our widgets)
|
|
|
|
|
if (g.ActiveId == 0 && g.HoveredId == 0 && g.IO.MouseClicked[0])
|
|
|
|
|
if (g.ActiveId == 0 && g.HoveredId == 0)
|
|
|
|
|
{
|
|
|
|
|
if (!g.NavWindow || g.NavWindow->WasActive || !g.NavWindow->Active) // Unless we just made a popup appear
|
|
|
|
|
{
|
|
|
|
|
if (!(g.NavWindow && !g.NavWindow->WasActive && g.NavWindow->Active)) // Unless we just made a popup appear
|
|
|
|
|
// Click to focus window and start moving (after we're done with all our widgets)
|
|
|
|
|
if (g.IO.MouseClicked[0])
|
|
|
|
|
{
|
|
|
|
|
if (g.HoveredRootWindow != NULL)
|
|
|
|
|
{
|
|
|
|
@ -2793,6 +2795,7 @@ void ImGui::EndFrame()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sort the window list so that all child windows are after their parent
|
|
|
|
|
// We cannot do that on FocusWindow() because childs may not exist yet
|
|
|
|
|