Browse Source

Removed use of obsolete ImGui API.

pull/1499/head
Branimir Karadžić 7 years ago
committed by omar
parent
commit
ef1a683ebe
  1. 2
      imgui_demo.cpp

2
imgui_demo.cpp

@ -2574,7 +2574,7 @@ struct ExampleAppConsole
}
// Demonstrate keeping auto focus on the input box
if (ImGui::IsItemHovered() || (ImGui::IsRootWindowOrAnyChildFocused() && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)))
if (ImGui::IsItemHovered() || (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)))
ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget
ImGui::End();

Loading…
Cancel
Save