mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
Avoid focusing default window
This commit is contained in:
parent
eaa32bb787
commit
056f68290b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user