Avoid focusing default window

This commit is contained in:
feelamee 2026-02-15 00:55:52 +03:00
parent eaa32bb787
commit 056f68290b

View file

@ -5703,7 +5703,7 @@ void ImGui::NewFrame()
// This fallback is particularly important as it prevents ImGui:: calls from crashing.
g.WithinFrameScopeWithImplicitWindow = true;
SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver);
Begin("Debug##Default");
Begin("Debug##Default", NULL, ImGuiWindowFlags_NoFocusOnAppearing);
IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true);
// Store stack sizes