summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
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 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8b22fc9af..c3089eef5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1012,6 +1012,9 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
AS_IF([test $macosversion_maj -ge 11], [
LIBS="$LIBS -framework UniformTypeIdentifiers"
])
+ AS_IF([test $macosversion_maj -ge 15], [
+ LIBS="$LIBS -framework ScreenCaptureKit"
+ ])
AS_IF([test x$have_pthread = xyes], [
AC_DEFINE([HAVE_PTHREAD])