Skip to content

Commit

Permalink
Update cursor without checking for IsPointerOver because that flags g…
Browse files Browse the repository at this point in the history
…ets written after the SetCursor is called (#17726)
  • Loading branch information
Gillibald authored and maxkatz6 committed Dec 19, 2024
1 parent 476ee2b commit 5f45637
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,7 @@ public void SetCursor(ICursorImpl? cursor)
var hCursor = impl?.Handle ?? s_defaultCursor;
SetClassLong(_hwnd, ClassLongIndex.GCLP_HCURSOR, hCursor);

if (Owner.IsPointerOver)
{
UnmanagedMethods.SetCursor(hCursor);
}
UnmanagedMethods.SetCursor(hCursor);
}

public void SetIcon(IWindowIconImpl? icon)
Expand Down

0 comments on commit 5f45637

Please sign in to comment.