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).

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

Commit messages:
 - Correctly invert y-coordinate on secondary monitors

Changes: https://git.openjdk.org/jfx/pull/1313/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1313&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301893
  Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/1313.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1313/head:pull/1313

PR: https://git.openjdk.org/jfx/pull/1313

Reply via email to