From 056f68290bbfb25200b678bf224ee25fa25adae5 Mon Sep 17 00:00:00 2001 From: feelamee Date: Sun, 15 Feb 2026 00:55:52 +0300 Subject: [PATCH] Avoid focusing default window --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 63c6789a5..c6bfd6db7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -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