This code thinks of your displays the same way Windows 10 does: see The Virtual Screen for details. The coordinate system always uses the displays' current resolution and ignores Windows 10 display ...