Skip to content

Commit 982ce50

Browse files
committed
IsWindowHovered() returns true when moving window (#1382, #1404)
1 parent ff4d4ca commit 982ce50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5126,7 +5126,7 @@ bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags)
51265126
if (!IsWindowContentHoverable(g.HoveredRootWindow, flags))
51275127
return false;
51285128
if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem))
5129-
if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap)
5129+
if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != g.HoveredWindow->MoveId)
51305130
return false;
51315131
return true;
51325132
}

0 commit comments

Comments
 (0)