|
@@ -12501,10 +12501,10 @@ bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags)
|
|
|
|
|
|
IM_ASSERT(cur_window); // Not inside a Begin()/End()
|
|
|
const bool popup_hierarchy = (flags & ImGuiFocusedFlags_NoPopupHierarchy) == 0;
|
|
|
- if (flags & ImGuiHoveredFlags_RootWindow)
|
|
|
+ if (flags & ImGuiFocusedFlags_RootWindow)
|
|
|
cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy);
|
|
|
|
|
|
- if (flags & ImGuiHoveredFlags_ChildWindows)
|
|
|
+ if (flags & ImGuiFocusedFlags_ChildWindows)
|
|
|
return IsWindowChildOf(ref_window, cur_window, popup_hierarchy);
|
|
|
else
|
|
|
return (ref_window == cur_window);
|