On Mon Aug 29 12:58:28 2022 +0000, R��mi Bernon wrote:
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.
dmPosition is in virtual screen coordinates. So if there is a 1920x1080 monitor to the left of the primary screen, then its position should be (-1920, 0). The primary screen origin is always at (0, 0).