From 982ce50b37492c79ddabb6e6b456b27964453940 Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 2 Nov 2017 16:44:32 +0100 Subject: [PATCH] IsWindowHovered() returns true when moving window (#1382, #1404) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 1cccefcb..daa658d7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5126,7 +5126,7 @@ bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) if (!IsWindowContentHoverable(g.HoveredRootWindow, flags)) return false; if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) - if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != g.HoveredWindow->MoveId) return false; return true; }