RFR: 8278609: accessibility frame is misplaced on a secondary monitor on macOS

Sergey Bylokhov serb at openjdk.java.net
Fri Dec 17 18:56:53 UTC 2021


On Mon, 13 Dec 2021 15:33:48 GMT, Aleksandr Veselov <duke at openjdk.java.net> wrote:

> Use primary screen instead of window main screen to properly convert mouse position from screen coordinates to window ones.

src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/CommonComponentAccessibility.m line 795:

> 793:     point.y += size.height;
> 794: 
> 795:     point.y = [[NSScreen screens][0] frame].size.height - point.y;

isn't the objectAtIndex is widely used than [] in our code base?

-------------

PR: https://git.openjdk.java.net/jdk/pull/6815



More information about the client-libs-dev mailing list