On Mon, 29 Apr 2024 10:44:37 GMT, Alexander Zvegintsev <azveg...@openjdk.org> 
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 problems 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/Focus/ModalDialogInFocusEventTest.java line 25:

> 23: 
> 24: /*
> 25:   @test

For some reason, this test was not enabled when it was open sourced, so enable 
it.
Testing is green on all platforms.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18995#discussion_r1582855462

Reply via email to