From 4f7c63a7af393db05e7706140ba04f2a8282e521 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 20 Aug 2016 23:25:53 +0200 Subject: [PATCH] Nav: Fixed a bug where mouse positioning requests would be sent while opening submenus with mouse (#323) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 98398001..9936ba34 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2463,7 +2463,7 @@ static void NavUpdate() IM_ASSERT(g.NavWindow); g.NavId = g.NavInitDefaultResultId; g.NavRefRectRel = g.NavInitDefaultResultRectRel; - if (!g.NavDisableHighlight) + if (g.NavDisableMouseHover) g.NavMousePosDirty = true; if (g.NavLayer == 0) g.NavWindow->NavLastId = g.NavId;