|
|
|
@ -5115,7 +5115,7 @@ bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags)
|
|
|
|
|
if (!IsWindowContentHoverable(g.HoveredRootWindow, flags))
|
|
|
|
|
return false;
|
|
|
|
|
if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem))
|
|
|
|
|
if (g.ActiveId != 0 && g.ActiveIdWindow != g.CurrentWindow)
|
|
|
|
|
if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap)
|
|
|
|
|
return false;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -5151,7 +5151,7 @@ bool ImGui::IsRootWindowOrAnyChildHovered(ImGuiHoveredFlags flags)
|
|
|
|
|
if (!IsWindowContentHoverable(g.HoveredRootWindow, flags))
|
|
|
|
|
return false;
|
|
|
|
|
if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem))
|
|
|
|
|
if (g.ActiveId != 0 && g.ActiveIdWindow != g.CurrentWindow)
|
|
|
|
|
if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap)
|
|
|
|
|
return false;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|