JDK-8280988 : [XWayland] Click on title to request focus test failures
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-01-31
  • Updated: 2024-09-30
  • Resolved: 2024-05-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 23 JDK 8
11.0.26-oracleFixed 17.0.13-oracleFixed 21.0.5-oracleFixed 23 b22Fixed 8u441Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Some tests are trying to get focus of some window by clicking on its title bar.

However on XWayland emulating of mouse clicks has effect only in window area, but not on its decorations. 
So shifting of Y coordinate from window decoration to its body allows tests to pass.

Another solution is to implement robot support for pure Wayland (JDK-8280983)

open:

    PASS: java/awt/Focus/6981400/Test1.java
    PASS: java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java

There is a test failing because of same reason:

    FAIL: java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java

It tries to resize/move window programmatically and with help of Robot(Dragging the border or header with mouse pressed). Programmatical way passes, robot fails due to reasons described above. We don't have much to do with this(make it manual, or remove robot resize)
Comments
Fix request [17u] I backport this for parity with 17.0.13-oracle. No risk, only tests change. Clean backport. Test pass. SAP nightly testing passed.
24-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2739 Date: 2024-07-23 06:56:03 +0000
23-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/799 Date: 2024-06-27 08:56:14 +0000
09-07-2024

Fix request [21u] I backport this for parity with 21.0.5-oracle. No risk, only a test change. Clean backport. Test pass. SAP nightly testing passed.
03-07-2024

Changeset: f6cdcc6f Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2024-05-02 20:18:25 +0000 URL: https://git.openjdk.org/jdk/commit/f6cdcc6f65f2a436906541bb8266e69ded17e2e3
02-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18995 Date: 2024-04-29 10:44:37 +0000
29-04-2024

After the JDK-8307779 specification change, this issue became a test bug.
04-10-2023

Specification change may be required to reflect actual behavior of Robot.
08-02-2023