-
Bug
-
Resolution: Fixed
-
P3
-
21, 22
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8335107 | 21.0.5-oracle | Harshitha Onkar | P3 | Resolved | Fixed | b01 |
JDK-8335373 | 21.0.5 | Andrew Lu | P3 | Resolved | Fixed | b01 |
JDK-8336115 | 17.0.13-oracle | Harshitha Onkar | P3 | Resolved | Fixed | b02 |
JDK-8337093 | 17.0.13 | Andrew Lu | P3 | Resolved | Fixed | b01 |
JDK-8338143 | 11.0.26-oracle | Harshitha Onkar | P3 | Resolved | Fixed | b01 |
JDK-8341299 | 8u441 | Renjith Kannath Pariyangad | P3 | Resolved | Fixed | b01 |
Affected tests:
FAIL: java/awt/Modal/OnTop/OnTopDocModal1Test.java
FAIL: java/awt/Modal/OnTop/OnTopDocModal2Test.java
FAIL: java/awt/Modal/OnTop/OnTopDocModal3Test.java
FAIL: java/awt/Modal/OnTop/OnTopDocModal4Test.java
FAIL: java/awt/Modal/OnTop/OnTopDocModal5Test.java
FAIL: java/awt/Modal/OnTop/OnTopDocModal6Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless1Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless2Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless3Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless4Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless5Test.java
FAIL: java/awt/Modal/OnTop/OnTopModeless6Test.java
FAIL: java/awt/Modal/ToFront/FrameToFrontModeless1Test.java
FAIL: java/awt/Modal/ToFront/FrameToFrontNonModalTest.java
Root cause and possible solutions:
"""
Yes, the reason is this is using XTEST, an X11 protocol which will not work outside of X11.
In other words, the emulated input event reaches the X11 clients, but not the Wayland compositor which is the actual display server but also the X11 window manager in Wayland, the component which is in charge of moving/resizing/stacking the windows.
You can easily observe this using xdotool and xev in Xwayland. If the emulated click occurs within the xev window, the X11 event is logged by xev, but the window is not restacked by the Wayland compositor.
We've been working an a separate protocol to make this work, it's libEI driven by Peter Hutterer:
https://gitlab.freedesktop.org/libinput/libei
"""
- backported by
-
JDK-8335107 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
-
JDK-8335373 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
-
JDK-8336115 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
-
JDK-8337093 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
-
JDK-8338143 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
-
JDK-8341299 [XWayland] XTest emulated mouse click does not bring window to front
- Resolved
- duplicates
-
JDK-8194938 Regression automated Test '/open/test/jdk/java/awt/Modal/OnTop/OnTopDocModal1Test.java' fails
- Closed
-
JDK-8194950 Regression automated Test java/awt/Modal/ToFront/FrameToFrontModeless1Test.java fails.
- Closed
- relates to
-
JDK-8280983 [XWayland] java.awt.Robot emulating keyboard/mouse events
- Open
- links to
-
Commit openjdk/jdk21u-dev/eff4452b
-
Commit openjdk/jdk/d2d78ad1
-
Commit(master) openjdk/jdk17u-dev/933587a0
-
Review openjdk/jdk21u-dev/800
-
Review openjdk/jdk/19417
-
Review(master) openjdk/jdk17u-dev/2740