From 7d98413d4621b964105f346d9e5a2361a0ce9bfc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:52:37 +0200 Subject: macOS 15.0 Sequoia: fix capture of window titlebars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- FL/mac.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') 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 -- cgit v1.2.3