FLTK logo

[branch-1.4] 6a8949e - Fix in window titlebar capture to support macOS 26 Tahoe

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[branch-1.4] 6a8949e - Fix in window titlebar capture to support macOS 26 Tahoe "ManoloFLTK" Jul 16, 2025  
 
commit 6a8949ef21f1f01562e14c6cf50ac2e886a6efe2
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Jul 16 10:44:48 2025 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Jul 16 10:44:48 2025 +0200

    Fix in window titlebar capture to support macOS 26 Tahoe

 src/Fl_cocoa.mm | 1 +
 1 file changed, 1 insertion(+)

diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index 449c5a2..a48c7a7 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -4770,6 +4770,7 @@ static CGImageRef capture_decorated_window_SCK(NSWindow *nswin) {
       int s = (int)[filter pointPixelScale];
       SCStreamConfiguration *config = [[[SCStreamConfiguration alloc] init] autorelease];
       [config setIgnoreShadowsSingleWindow:YES];
+      [config setIgnoreShadowsDisplay:YES]; // necessary with macOS 26 Tahoe
       [config setShowsCursor:NO];
       [config setWidth:W*s];
       [config setHeight:H*s];
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.