Browse Source
Update cursor without checking for IsPointerOver because that flags gets written after the SetCursor is called (#17726)
pull/17742/head
Benedikt Stebner
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
4 deletions
-
src/Windows/Avalonia.Win32/WindowImpl.cs
|
|
|
@ -807,10 +807,7 @@ namespace Avalonia.Win32 |
|
|
|
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) |
|
|
|
|