mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-15 00:44:20 +00:00
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:
parent
bcb83ed24e
commit
f421f2f47e
2 changed files with 7 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue