Minor bits.

This commit is contained in:
ocornut
2016-07-16 10:46:51 +02:00
parent bbd3b75609
commit 91e1c56da6
3 changed files with 3 additions and 5 deletions

View File

@ -4488,10 +4488,8 @@ void ImGui::FocusWindow(ImGuiWindow* window)
{
ImGuiContext& g = *GImGui;
// Always mark the window we passed as focused. This is used for keyboard interactions such as tabbing.
g.FocusedWindow = window;
// Passing NULL allow to disable keyboard focus
g.FocusedWindow = window;
if (!window)
return;