From 54eb4c485e898e215669a552dbce10f303bd63c8 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 29 Sep 2017 19:15:24 +0200 Subject: [PATCH] Nav: Marked misleading/broken code that will never execute. --- imgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 62d52fb0..e3d2b652 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3430,11 +3430,14 @@ void ImGui::EndFrame() if (g.HoveredRootWindow != NULL) { FocusWindow(g.HoveredWindow); + // FIXME-NAV: This never execute because of the FocusWindow call above, however we may might this behavior? + /* if (g.NavWindow != g.HoveredWindow) { g.NavRefRectRel = ImRect(g.IO.MousePos - g.HoveredWindow->Pos, g.IO.MousePos - g.HoveredWindow->Pos); //ImRect(0,0,0,0); g.NavDisableHighlight = true; } + */ if (!(g.HoveredWindow->Flags & ImGuiWindowFlags_NoMove)) { g.MovedWindow = g.HoveredWindow;