IsWindowHovered() takes account of window hoverability (may be disabled because of a popup) + comment

Was a dupe of IsMouseHoveringWindow() anyway, they are now "clearly"
different.
This commit is contained in:
ocornut
2015-08-12 22:30:07 -06:00
parent bcb83ed24e
commit f421f2f47e
2 changed files with 7 additions and 7 deletions

View File

@ -4304,7 +4304,7 @@ const char* ImGui::GetStyleColName(ImGuiCol idx)
bool ImGui::IsWindowHovered()
{
ImGuiState& g = *GImGui;
return g.HoveredWindow == g.CurrentWindow;
return g.HoveredWindow == g.CurrentWindow && IsWindowContentHoverable(g.HoveredRootWindow);
}
bool ImGui::IsWindowFocused()