RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v11]
Alisen Chung
achung at openjdk.org
Sat Mar 15 00:20:01 UTC 2025
On Fri, 14 Mar 2025 01:48:47 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> 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?
The click occurs at the edge of the screen. You can run the test attached with the screenshot mode on (this will display the mouse location) and once the test is finished the mouse will display coordinates at the edge of the screen. If you move any windows onto the edge of the screen where the mouse appears to end up and run the test again, then do a simple manual click, that window will gain focus. So the actual mouse pointer isn't at (10000,10000) but rather at the edge of the screen.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2726048504
More information about the client-libs-dev
mailing list