Skip to content

Commit 5f45637

Browse files
Gillibaldmaxkatz6
authored andcommitted
Update cursor without checking for IsPointerOver because that flags gets written after the SetCursor is called (#17726)
1 parent 476ee2b commit 5f45637

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Windows/Avalonia.Win32/WindowImpl.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,7 @@ public void SetCursor(ICursorImpl? cursor)
773773
var hCursor = impl?.Handle ?? s_defaultCursor;
774774
SetClassLong(_hwnd, ClassLongIndex.GCLP_HCURSOR, hCursor);
775775

776-
if (Owner.IsPointerOver)
777-
{
778-
UnmanagedMethods.SetCursor(hCursor);
779-
}
776+
UnmanagedMethods.SetCursor(hCursor);
780777
}
781778

782779
public void SetIcon(IWindowIconImpl? icon)

0 commit comments

Comments
 (0)