message: Refactor EndFrame() code that process focusing window with left mouse button. This commit should be no-op.
diff: @@ -2773,10 +2773,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)
  {
  @@ -2795,6 +2797,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
  