> 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.
Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: toFront + clickOnTitle(only for non wayland environment) ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18995/files - new: https://git.openjdk.org/jdk/pull/18995/files/ef4d7716..35bdff25 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18995&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18995&range=01-02 Stats: 25 lines in 3 files changed: 9 ins; 1 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18995.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18995/head:pull/18995 PR: https://git.openjdk.org/jdk/pull/18995