Skip to content

Commit 0a8b2c7

Browse files
authored
Update cursor without checking for IsPointerOver because that flags gets written after the SetCursor is called (#17726)
1 parent 20a40d9 commit 0a8b2c7

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
@@ -807,10 +807,7 @@ public void SetCursor(ICursorImpl? cursor)
807807
var hCursor = impl?.Handle ?? s_defaultCursor;
808808
SetClassLong(_hwnd, ClassLongIndex.GCLP_HCURSOR, hCursor);
809809

810-
if (Owner.IsPointerOver)
811-
{
812-
UnmanagedMethods.SetCursor(hCursor);
813-
}
810+
UnmanagedMethods.SetCursor(hCursor);
814811
}
815812

816813
public void SetIcon(IWindowIconImpl? icon)

0 commit comments

Comments
 (0)