Internal: FindWindowByName() faster and doesn't touch every windows

This commit is contained in:
omar
2017-11-07 13:59:55 +01:00
parent 8e6adc78af
commit 571b08f315
2 changed files with 4 additions and 7 deletions

View File

@ -422,6 +422,7 @@ struct ImGuiContext
ImVector<ImGuiWindow*> Windows;
ImVector<ImGuiWindow*> WindowsSortBuffer;
ImVector<ImGuiWindow*> CurrentWindowStack;
ImGuiStorage WindowsById;
ImGuiWindow* CurrentWindow; // Being drawn into
ImGuiWindow* NavWindow; // Nav/focused window for navigation
ImGuiWindow* HoveredWindow; // Will catch mouse inputs