RFR: 8176813: Mac: Failure to exit full-screen programmatically in some cases
Kevin Rushforth
kcr at openjdk.org
Thu May 1 15:18:53 UTC 2025
On Tue, 29 Apr 2025 16:40:01 GMT, Martin Fox <mfox at openjdk.org> wrote:
> > * Will there be any problem one of the deferred Runnables causes an exitFullScreen (e.g., on a different Stage in a dual screen case)? This might be worth testing.
>
> Could you provide more details on what you want tested? I'm not that familiar with how fullscreen works on dual screen setups.
My thought was to do something like this on a dual-monitor system:
1. Create two stages, one on each screen
2. Programmatically enter full-screen in both Windows from the same block (e.g., the same `runLater`)
3. Sleep until animation finishes
4. Programmatically exit full-screen in both Windows from the same block (e.g., the same `runLater`)
5. Sleep until animation finishes
6. Repeat steps 2-5 but this time from different runLater runnables
7. Programmatically enter full-screen in stage1
8. Sleep until animation finishes
9. Programmatically enter full-screen in stage2
10. While stage2 is still animating its full-screen-enter, programmatically exit full screen in stage1.
If there is a problem, it likely exists today. I doubt this PR will make it worse, but I wanted to at least bring it up as a thought experiment.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1797#issuecomment-2845042296
More information about the openjfx-dev
mailing list