From 2159629e9ee20cfbf2d814761edb95ef76bd333b Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 28 Sep 2017 00:05:35 +0200 Subject: [PATCH] Removed another msileading difference between the hovered functions (IsWindowContentHoverable() uses the root window already). Sorry for the commit spam! (making small commit to easily be able to Bisect those in case I make a mistake) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index fcf947b30..150ebf62b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1999,7 +1999,7 @@ bool ImGui::IsHovered(const ImRect& bb, ImGuiID id) return false; if (!IsMouseHoveringRect(bb.Min, bb.Max)) return false; - if (!IsWindowContentHoverable(g.HoveredRootWindow)) + if (!IsWindowContentHoverable(window)) return false; return true; }