On Mon Aug 29 09:35:01 2022 +0000, Zhiyi Zhang wrote:
According to https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens. The primary screen already has an origin of (0, 0). This is different compared to X11 where the primary screen may not be at (0, 0). Offsetting when unnecessary, you're making the leftmost monitor the primary. Could you recheck whether this part of the code is correct?
Well I have no idea really, is `dmPosition` supposed to be relative to the primary screen top left corner on Windows? I assumed it was some kind of virtual desktop coordinate system and that left-most screen was with `dmPosition.x == 0`, not really anything with the primary screen.