This PR adds a fix to prevent a crash on macOS after exiting full screen mode when a modal dialog is showing (https://bugs.openjdk.org/browse/JDK-8371370).
At the same time, it prevents non-resizable windows from entering full screen mode (https://bugs.openjdk.org/browse/JDK-8379315), given that the changes for both issues were interrelated. While no tests have been added, manual tests have been run, checking that the style mask, the window behavior and the standard window buttons state, remained consistent in different scenarios. ------------- Commit messages: - Prevent crash exiting full screen mode, prevent non-resizable windows from entering full screen mode, manage style mask, window behavior and standard window buttons state, Changes: https://git.openjdk.org/jfx/pull/2098/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2098&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8371370 Stats: 129 lines in 3 files changed: 106 ins; 2 del; 21 mod Patch: https://git.openjdk.org/jfx/pull/2098.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2098/head:pull/2098 PR: https://git.openjdk.org/jfx/pull/2098
