On Tue, 30 Apr 2024 16:49:49 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> test/jdk/java/awt/Focus/6981400/Test1.java line 186: >> >>> 184: Util.clickOnComp(compToClick, robot); >>> 185: >>> 186: if (Platform.isOnWayland()) { >> >> If the goal is just to move the window to the front then can we try "toFront >> + click on title" on X11 and just "toFront" on Wayland? > > Do we really need an additional click on the title in this case? > Just `toFront` should be enough on all platforms. `toFront()` is known to be broken on some versions of metacity/gnome, not sure it was fixed or not, that was a reason why the "click" workaround was introduced. If it works fine on Wayland we can just use it and leave the old x11 workaround as is. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18995#discussion_r1586896682