mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 13:08:47 +02: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:
@ -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()
|
||||
|
Reference in New Issue
Block a user