Fixes comment

This commit is contained in:
Nathan Pearson 2022-01-11 06:39:48 -07:00
parent a40ff85e1a
commit 2ccfecb5ae

View File

@ -2314,6 +2314,7 @@ bool _glfwPlatformToggleFullscreen(_GLFWwindow* w, unsigned int flags) {
NSWindowStyleMask sm = [window styleMask];
if (traditional) {
if (@available(macOS 10.15, *)) {
// As of Big Turd NSWindowStyleMaskFullScreen is no longer useable
// Also no longer compatible after a minor release of macOS 10.15
if (!w->ns.in_traditional_fullscreen) {
w->ns.pre_full_screen_style_mask = sm;