RFR: 8301893: IME window position is off on secondary screen

Kevin Rushforth kcr at openjdk.org
Thu Jan 4 22:38:29 UTC 2024


On Wed, 27 Dec 2023 00:01:10 GMT, Martin Fox <mfox at openjdk.org> wrote:

> The Mac screen coordinate system is inverted on the y-axis compared to JavaFX so glass needs to flip the y coordinate. IM coordinates are relative to the primary screen which is NSScreen.screens[0], not NSScreen.mainScreen (mainScreen is the screen that contains the window that has focus).

Looks good. Tested on macOS 14.2.1 with dual monitors.

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

Marked as reviewed by kcr (Lead).

PR Review: https://git.openjdk.org/jfx/pull/1313#pullrequestreview-1805069568


More information about the openjfx-dev mailing list