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

Martin Fox mfox at openjdk.org
Wed May 7 19:52:58 UTC 2025


On Wed, 7 May 2025 18:45:37 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

>> tests/system/src/test/java/test/robot/javafx/stage/StageOwnershipTest.java line 436:
>> 
>>> 434:                 stage2::show,
>>> 435:                 stage2::close,
>>> 436:                 () -> assertTrue(stage1.isFocused()));
>> 
>> This test looks incorrect. If closing an app modal window should focus the parent (and I think it should) then stage0 should be focused.
>
> But `stage1` is the owner of `stage2`

When stage2 is created you pass in stage0 as the owner, not stage1.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1789#discussion_r2078371628


More information about the openjfx-dev mailing list