Integrated: 8357584: [XWayland] [OL10] Robot.mousePress() is delivered to wrong place
Alexander Zvegintsev
azvegint at openjdk.org
Mon Jul 7 18:47:45 UTC 2025
On Wed, 18 Jun 2025 15:33:45 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
> This changeset introduces an adapted version of [the OpenJDK fix](https://github.com/openjdk/jdk/commit/2dfbf41d2a3dbcd44f9ed9a58a1b0932d7536977) for mouse and keyboard interactions with Robot.
> More info about the issue itself is available in the PR [description](https://github.com/openjdk/jdk/pull/25265#issue-3068640753)
>
> In short, the currently used XTest for keyboard and mouse interactions may not be suitable for automated testing at some point, as it may require user confirmation to control the mouse or keyboard from time to time.
>
> This fix adds support for the [Remote Desktop XDG portal](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.RemoteDesktop.html).
> This allows us to control the keyboard and mouse with Robot on Wayland, even outside the XWayland server (e.g., clicking on window headers and Wayland native apps).
>
> ----
>
> * The remote desktop for Robot is enabled by default on GnomeShell 47+
> * It can be enabled manually by setting the `javafx.robot.screenshotMethod` system property to `dbusRemoteDesktop` (e.g. it works on Ubuntu 24.04 with GnomeShell 46)
> * The key handling might still have bugs.
> * The main goal is to add this new functionality. If there are small issues that can't be solved right away, I will prefer to fix them in follow up fixes.
This pull request has now been integrated.
Changeset: 639a5950
Author: Alexander Zvegintsev <azvegint at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/639a5950b6eae7870fd9d9e84f9ce81322aaab82
Stats: 1312 lines in 12 files changed: 1081 ins; 139 del; 92 mod
8357584: [XWayland] [OL10] Robot.mousePress() is delivered to wrong place
Reviewed-by: lkostyra, arapte
-------------
PR: https://git.openjdk.org/jfx/pull/1834
More information about the openjfx-dev
mailing list