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

Alisen Chung achung at openjdk.org
Fri Dec 20 19:29:35 UTC 2024


On Fri, 20 Dec 2024 14:08:16 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> I wonder if this is even a bug in `Robot`.

I think it makes sense for Robot to clamp mouseMove so that MouseInfo.getPointerInfo() will never return these junk coordinates, but I understand what you mean since the clamping (or updating) could be done in getPointerInfo() instead. Maybe @prrace has an opinion on this?

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

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


More information about the client-libs-dev mailing list