Skip to content

Commit 9d4fafa

Browse files
committed
Nav: removed an unnecessary FindWindowByName() call.
Amend c7016c2. It's not clear to me why it was committed like that, maybe a leftover of wip code which used the pointer before Begin().
1 parent e2c4953 commit 9d4fafa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

imgui.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14555,13 +14555,12 @@ void ImGui::NavUpdateWindowingOverlay()
1455514555
if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY)
1455614556
return;
1455714557

14558-
if (g.NavWindowingListWindow == NULL)
14559-
g.NavWindowingListWindow = FindWindowByName("##NavWindowingOverlay");
1456014558
const ImGuiViewport* viewport = GetMainViewport();
1456114559
SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX));
1456214560
SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f));
1456314561
PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f);
1456414562
Begin("##NavWindowingOverlay", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings);
14563+
g.NavWindowingListWindow = g.CurrentWindow;
1456514564
if (g.ContextName[0] != 0)
1456614565
SeparatorText(g.ContextName);
1456714566
for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--)

0 commit comments

Comments
 (0)