Fixed hoverable/focus bug introduced in 3fe6ae97 (#2997)

+ ArrowButtonEx() internal bits.
This commit is contained in:
omar
2020-01-22 14:20:56 +01:00
parent 7a22767483
commit 2eda3585e7
3 changed files with 3 additions and 3 deletions

View File

@ -2834,7 +2834,7 @@ static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFla
// FIXME-OPT: This could be cached/stored within the window.
ImGuiContext& g = *GImGui;
if (!g.NavWindow)
return false;
return true;
if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow)
if (focused_root_window->WasActive && focused_root_window != window->RootWindow)
{