summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-12 15:52:37 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-14 11:55:53 +0200
commit7d98413d4621b964105f346d9e5a2361a0ce9bfc (patch)
tree56b6250e379217a67b5b67f71cd4d6409aa53557 /FL
parent7104746413c6327d82340dede4abd06bb65f9032 (diff)
macOS 15.0 Sequoia: fix capture of window titlebars
The previous procedure using CGWindowListCreateImageFromArray() is obsoleted in macOS 15.0 . The new procedure requires an additional framework: ScreenCaptureKit; FLTK uses it only for macOS ≥ 15.0
Diffstat (limited to 'FL')
-rw-r--r--FL/mac.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/mac.H b/FL/mac.H
index 8982057a1..b0a2b84f5 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -99,6 +99,9 @@ typedef class FLWindow *Window; // pointer to the FLWindow objective-c class
#ifndef MAC_OS_VERSION_14_0
#define MAC_OS_VERSION_14_0 140000
#endif
+#ifndef MAC_OS_VERSION_15_0
+#define MAC_OS_VERSION_15_0 150000
+#endif
#ifndef NSINTEGER_DEFINED // appears with 10.5 in NSObjCRuntime.h