On Wed, 18 Nov 2026 00:42:07 GMT, Jose Pereda <[email protected]> wrote:

>> Maybe, but the problem with this is that the test can then pass without 
>> actually activating, thus not testing anything.
>> 
>> I'd probably lean towards waiting for focus, failing if we don't get it, and 
>> skipping it on Linux for this specific test if there is a concern.
>
> I've just realized I did not push the change I was discussing earlier, sorry. 
> I've done it now (renaming the test so it doesn't collide). It includes the 
> focused listeners, but no guards against focus-stealing prevention yet.

> on some Linux setups, the window manager might prevent the stages from 
> getting the focus (unless clicked by a user)

Actually, we have several tests that will fail if they don't get focus, so I 
don't think we need to do anything proactively.

I will run this PR on Linux in our CI and see if it is OK. If it is, then I 
don't think any changes are needed.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2373#discussion_r4618295817

Reply via email to