winit
winit copied to clipboard
Desktop/screen coordinates don't work properly across monitors with different scale factors
Description
The calculation is based on the window's current monitor's scale factor, instead of the "root" monitor's scale factor (screen coordinates are weird on macOS). Should be fixable by taking the scale factor from NSScreen::screens()[0]
.
macOS version
ProductName: macOS
ProductVersion: 14.4
BuildVersion: 23E214
Winit version
0.29.11