Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop/screen coordinates don't work properly across monitors with different scale factors #3615

Open
madsmtm opened this issue Mar 29, 2024 · 0 comments
Assignees
Labels
B - bug Dang, that shouldn't have happened DS - macos

Comments

@madsmtm
Copy link
Member

madsmtm commented Mar 29, 2024

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

@madsmtm madsmtm added B - bug Dang, that shouldn't have happened DS - macos labels Mar 29, 2024
@madsmtm madsmtm self-assigned this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - macos
Development

No branches or pull requests

1 participant