RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v11]

Sergey Bylokhov serb at openjdk.org
Fri Mar 14 01:51:57 UTC 2025


On Thu, 13 Mar 2025 20:27:34 GMT, Alisen Chung <achung at openjdk.org> wrote:

>If we set mouseMove to go to (10000,10000) and call MouseInfo.getPointerInfo().getLocation(), that then calls the native CGEventGetLocation which returns the (10000,10000) point, but the mouse pointer is still visible in the bottom right corner of the screen.

But where is the actual mouse pointer located at this moment? If you press any mouse button (not necessarily using the robot), where will the click occur?

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

PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2723120279


More information about the client-libs-dev mailing list