win32: disable DPI re-adjustments on Windows 11

For earlier Windows 10 builds (pre-22000), a workaround was necessary
to fix dragging window onto a monitor with different DPI. This commit makes
the old DPI workaround  to only apply conditionally on affected Windows versions.

Fixes #4041.
This commit is contained in:
moooozi 2025-08-24 05:57:31 +02:00 committed by GitHub
parent a4af50ec13
commit 488c036a05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 154 additions and 132 deletions

View file

@ -259,3 +259,4 @@ changelog entry.
- On Windows, account for mouse wheel lines per scroll setting for `WindowEvent::MouseWheel`.
- On Windows, `Window::theme` will return the correct theme after setting it through `Window::set_theme`.
- On Windows, `Window::set_theme` will change the title bar color immediately now.
- On Windows 11, prevent incorrect shifting when dragging window onto a monitor with different DPI.