From 5812d0b75108a21f2436e668d140bda59154a8ac Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 1 Feb 2018 18:29:30 +0100 Subject: [PATCH] Nav: Using CTRL+TAB / PadFocusNext/Prev to Focus a window closes the previous window popups. (#787) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index e9795c8d..e3b41300 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2832,6 +2832,7 @@ static void ImGui::NavUpdateWindowing() g.NavDisableHighlight = false; g.NavDisableMouseHover = true; apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window); + CloseInactivePopups(apply_focus_window); FocusWindow(apply_focus_window); if (apply_focus_window->NavLastIds[0] == 0) NavInitWindow(apply_focus_window, false);