On Sat, 14 Nov 2026 23:26:49 GMT, Alexander Zuev <[email protected]> wrote:
> On macOS 27 window animation takes a bit longer and if we attempt to perform > the mouse event on the window at this moment the coordinates conversion can > be incorrect. Uncommenting the one second delay before mouse click fixing the > problem. > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/event/MouseEvent/FrameMouseEventAbsoluteCoordsTest/FrameMouseEventAbsoluteCoordsTest.java line 68: > 66: { > 67: frame.setVisible(true); > 68: Util.waitForIdle(robot); Suggestion: Util.waitForIdle(robot); robot.delay(500); I would still add the delay right after Util.waitForIdle(robot). It may be stable on macos, but I've already fixed several flaky tests on Linux where the coordinates were read too early. ------------- PR Review: https://git.openjdk.org/jdk/pull/33910#pullrequestreview-5980790712 PR Review Comment: https://git.openjdk.org/jdk/pull/33910#discussion_r4633141027
