JDK-8280983 : [XWayland] java.awt.Robot emulating keyboard/mouse events
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 21,22
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-01-31
  • Updated: 2025-06-28
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 26
26Unresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
Current JDK implementation mostly works for X11 compatibility mode (except when trying to reach outside XWayland and windows are not restacked on emulated mouse click).

This will probably be implemented by https://gitlab.freedesktop.org/libinput/libei

However, its shipping time (even estimated) is not yet known.
Comments
This issue will most likely be a duplicate of the JDK-8351907 because it should introduce mouse and keyboard emulation via https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.RemoteDesktop.html
16-05-2025

this is more like Enhancement to support pure Wayland
16-04-2024

This issue is only critical for the pure Wayland port, its release date is still unclear, so moving out of 23 target. Gnome Shell support for libei has been shipped since version 45. This is also good news for X11 compatibility mode, as libei should work with the XTEST extension. So our calls to emulate keyboard/mouse events on XToolkit should be propagated outside the XWayland server to the whole desktop. But it needs to be tested.
16-04-2024

Removing wayland_x11_compatibility label as it covered by JDK-8307779 Relax the java.awt.Robot specification
26-05-2023

External Wayland bug: https://github.com/flatpak/xdg-desktop-portal/issues/850
02-02-2023