On Tue, 29 Apr 2025 17:29:26 GMT, Martin Fox <m...@openjdk.org> wrote:
>> On macOS the system animates the transition into and out of fullscreen and >> this animation runs asynchronously. JavaFX tries to make the setFullScreen >> call appear synchronous by running a nested event loop while the transition >> is going on. But this means that runLater runnables can fire during a call >> to setFullScreen. >> >> This can also occur during a call to Window.hide() if the window is in >> fullscreen mode. During the setView call glass tries to take the window out >> of fullscreen mode which fires up a nested event loop and, again, runLater >> runnables (like pulses) start firing. >> >> In this PR GlassRunnables that try to run during the fullscreen transition >> are instead placed in a deferral list. When the fullscreen event loop exits >> they are re-scheduled. > > Martin Fox has updated the pull request incrementally with one additional > commit since the last revision: > > Fixed typo, re-enabled maximized position test on macOS. it's possible that 200/400 ms is just too short. increased the timeout to 700 ms, seems to produce no exceptions: https://github.com/andy-goryachev-oracle/Test/commit/18c77fd93925c51d6c2b5d7b590ececcea8d1e0c ------------- PR Comment: https://git.openjdk.org/jfx/pull/1797#issuecomment-2839715356 PR Comment: https://git.openjdk.org/jfx/pull/1797#issuecomment-2839719427