RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v13]
Sergey Bylokhov
serb at openjdk.org
Tue May 13 03:44:53 UTC 2025
On Thu, 8 May 2025 20:46:48 GMT, Phil Race <prr at openjdk.org> wrote:
> Moreover, it looks like as part of the "unification" the fix dropped clamping code in Robot (!)
>
> https://cr.openjdk.org/%7Epchelko/9/8035568/webrev.02/src/macosx/native/sun/awt/CRobot.m.udiff.html
That code executed only if the current mouse position is unknown or outside of the mainscreen, that native code was moved to the java level into the CRobot class by the patch:
https://cr.openjdk.org/~pchelko/9/8035568/webrev.02/src/macosx/classes/sun/lwawt/macosx/CRobot.java.sdiff.html
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2874970368
More information about the client-libs-dev
mailing list