RFR: 8357584: [XWayland] [OL10] Robot.mousePress() is delivered to wrong place

Alexander Zvegintsev azvegint at openjdk.org
Wed Jun 25 14:48:37 UTC 2025


On Wed, 25 Jun 2025 12:21:36 GMT, Lukasz Kostyra <lkostyra at openjdk.org> wrote:

> I see most checks relate to Gnome and its version - what would be the behavior if we ran the tests on a different desktop env like KDE?

This question has already been raised on the OpenJDK PR. The short answer is that it's an unsupported configuration (I am unsure about JFX), so I didn't test it. If some tuning is required to support it, I would prefer to address that as a follow-up fix.

Please see quote from https://github.com/openjdk/jdk/pull/25265#discussion_r2093639881 below:

---
> BTW how it is expected to work on KDE + wayland?

It is not a supported configuration.However, when I tested it a while ago, it only worked in a single-screen scenario for the Screencast.
There was an issue with the screen streams; they did not specify their `x` and `y` coordinates.
This prevented the correct arrangement of multiple screens.
I don't know if this has been fixed, but the issue is addressed in our code here:

https://github.com/openjdk/jdk/blob/3dd34517000e4ce1a21619922c62c025f98aad44/src/java.desktop/unix/native/libawt_xawt/awt/screencast_portal.c#L132-L155

In this case, the Screencast is simply disabled.

The Remote Desktop uses the same streams from Screencast portal to control the mouse position.

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

PR Comment: https://git.openjdk.org/jfx/pull/1834#issuecomment-3005068122


More information about the openjfx-dev mailing list