On Mon, 29 Apr 2024 10:44:37 GMT, Alexander Zvegintsev <[email protected]>
wrote:
> Some tests try to get the focus of a window by clicking on its title bar.
>
> On XWayland, however, emulating mouse clicks with XTEST currently only
> affects the XWayland server, not the window decorations, so trying to click
> on the window title will have no effect.
>
> So the solution is to click inside the window or call `toFront()` to get the
> window focused.
>
> Some tests have issues with AWT/Swing calls not being on EDT, it is not the
> goal of this change to fix them as they require way too many code changes,
> and make this PR hard to review.
test/jdk/java/awt/regtesthelpers/Util.java line 674:
> 672: return System.getenv("WAYLAND_DISPLAY") != null;
> 673: }
> 674:
Is it better to have this function in `jdk/test/lib/Platform.java` since all
the other OS-related checks are in Platform.java ?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18995#discussion_r1583774219