From f56d9b74cc3bac4e3f2d89ed1a559955d080b5b8 Mon Sep 17 00:00:00 2001 From: omar Date: Sun, 27 Jan 2019 16:37:02 +0100 Subject: [PATCH] Nav: Removed unnecessary test (always failing). --- imgui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 2e097e85e..fd270b517 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7610,9 +7610,8 @@ static void ImGui::NavUpdate() NavUpdateWindowing(); // Set output flags for user application - // FIXME: g.NavInitRequest is always false at this point, investigate the intent of operation done here. g.IO.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); - g.IO.NavVisible = (g.IO.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL) || g.NavInitRequest; + g.IO.NavVisible = (g.IO.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); // Process NavCancel input (to close a popup, get back to parent, clear focus) if (IsNavInputPressed(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed))