Skip to content

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

@madsmtm

Description

@madsmtm

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

Metadata

Metadata

Assignees

Labels

B - bugDang, that shouldn't have happenedDS - appkitAffects the AppKit/macOS backend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions