RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v18]

Thiago Milczarek Sayao tsayao at openjdk.org
Wed May 7 18:53:57 UTC 2025


On Wed, 7 May 2025 14:00:28 GMT, Lukasz Kostyra <lkostyra at openjdk.org> wrote:

> I think the GTK changes are fine, however the tests need some addressing.
> 
> On Linux (Ubuntu 24.04.2 VM) I see consistently failing two tests:
> 
> ```
>     StageOwnershipTest. testClosingAppModalShouldFocusParent(StageStyle) [1] DECORATED
>     StageOwnershipTest. testClosingAppModalShouldFocusParent(StageStyle) [2] UNDECORATED
> ```
> 
> Not sure for the reason for these, but it is a similar failure to Windows ones listed below - line 436 `assertTrue(stage1.isFocused())` fails.
> 

This is because the focus stealing prevention mechanism on gnome/mutter. It's a sensitive topic in the gnome community, with lovers and haters :)

I still have to fix it - it's on my list.

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

PR Comment: https://git.openjdk.org/jfx/pull/1789#issuecomment-2859884221


More information about the openjfx-dev mailing list