Browse Source
Fixed invalid monitor detection when changing window position (#18562)
pull/18445/merge
Nikita Tsukanov
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
src/Windows/Avalonia.Win32/WindowImpl.cs
|
|
|
@ -527,8 +527,7 @@ namespace Avalonia.Win32 |
|
|
|
|
|
|
|
if (ShCoreAvailable && Win32Platform.WindowsVersion >= PlatformConstants.Windows8_1) |
|
|
|
{ |
|
|
|
var monitor = MonitorFromPoint(new POINT() { X = value.X, Y = value.Y }, |
|
|
|
MONITOR.MONITOR_DEFAULTTONEAREST); |
|
|
|
var monitor = MonitorFromWindow(Handle.Handle, MONITOR.MONITOR_DEFAULTTONEAREST); |
|
|
|
|
|
|
|
if (GetDpiForMonitor( |
|
|
|
monitor, |
|
|
|
|