Use primary screen instead of window main screen to properly convert mouse position from screen coordinates to window ones.
Copy of [jdk/6815](https://github.com/openjdk/jdk/pull/6815) ------------- Commit messages: - 8278609: accessibility frame is misplaced on a secondary monitor on macOS Changes: https://git.openjdk.java.net/jdk18/pull/48/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk18&pr=48&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8278609 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.java.net/jdk18/pull/48.diff Fetch: git fetch https://git.openjdk.java.net/jdk18 pull/48/head:pull/48 PR: https://git.openjdk.java.net/jdk18/pull/48