RFR: 8306121: Scene not rendered initially when changing scenes after fix for JDK-8296621 [v20]

Thiago Milczarek Sayao tsayao at openjdk.org
Thu Jun 8 20:08:57 UTC 2023


On Tue, 6 Jun 2023 01:09:36 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

>> I replicated the fix on #1054 on Linux.
>> 
>> Also fixes [Monocle: Stage no longer gets focus after fix for JDK-8296621](https://bugs.openjdk.org/browse/JDK-8304734)
>
> Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Insert copyright

It seems Headless monocle was not focusing the window before, so this is why tests were passing before (focus was not being accounted).

I've attached a simple `FocusTest` on JBS that prints to the console when Stage/TextField are focused. It does not print anything before this change.

`java -Dglass.platform=Monocle -Dmonocle.platform=Headless -Dprism.order=sw @build/testrun.args FocusTest.java`

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

PR Comment: https://git.openjdk.org/jfx/pull/1110#issuecomment-1583268444


More information about the openjfx-dev mailing list