summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-02-04 17:30:35 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-02-04 17:30:35 +0100
commit89d146eceee54ce2d4692751d3e7dcdb23817a28 (patch)
tree688c9d565277fdc1321a55972bb71117a2eaad30 /src
parent02f431bd8860e3d36f618a113c9eac8016281bb3 (diff)
macOS: fix when fullscreen window looses and regains focus with SDK 10.6 (#1192)
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 3c40eac53..6ba142253 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1444,11 +1444,11 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
FLWindow *nsw = (FLWindow*)[notif object];
Fl_Window *w = [nsw getFl_Window];
/* Restore previous fullscreen level */
- if (w->fullscreen_active() && (fl_mac_os_version < 100700
+ if (w->fullscreen_active()
# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
- || !(nsw.styleMask & NSWindowStyleMaskFullScreen)
+ && (fl_mac_os_version < 100700 || !(nsw.styleMask & NSWindowStyleMaskFullScreen))
#endif
- )) {
+ ) {
[nsw setLevel:NSStatusWindowLevel];
fixup_window_levels();
}