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

Aleksandr Veselov duke at openjdk.java.net
Fri Dec 17 18:56:56 UTC 2021


On Mon, 13 Dec 2021 20:01:29 GMT, Sergey Bylokhov <serb at openjdk.org> 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?

Fixed

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

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



More information about the client-libs-dev mailing list