// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal.
// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal.
@ -4502,9 +4552,6 @@ void ImGui::EndFrame()
// Initiate moving window + handle left-click and right-click focus
// Initiate moving window + handle left-click and right-click focus
UpdateMouseMovingWindowEndFrame();
UpdateMouseMovingWindowEndFrame();
// Draw modal/window whitening backgrounds
EndFrameDrawDimmedBackgrounds();
// Sort the window list so that all child windows are after their parent
// Sort the window list so that all child windows are after their parent
// We cannot do that on FocusWindow() because children may not exist yet
// We cannot do that on FocusWindow() because children may not exist yet
g.WindowsTempSortBuffer.resize(0);
g.WindowsTempSortBuffer.resize(0);
@ -4574,6 +4621,10 @@ void ImGui::Render()
if(windows_to_render_top_most[n]&&IsWindowActiveAndVisible(windows_to_render_top_most[n]))// NavWindowingTarget is always temporarily displayed as the top-most window
if(windows_to_render_top_most[n]&&IsWindowActiveAndVisible(windows_to_render_top_most[n]))// NavWindowingTarget is always temporarily displayed as the top-most window
// Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71)
// Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71)
// When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order.
// When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order.
// FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493)
// FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493)
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens)
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens)