Restore correct support of fl_open_callback() under macOS 26

This commit is contained in:
ManoloFLTK 2026-02-25 18:01:17 +01:00
parent f2424bf1fc
commit afa7434f0c

View File

@ -1809,7 +1809,7 @@ void Fl_Cocoa_Screen_Driver::open_display_platform() {
FLAppDelegate *delegate = [FLAppDelegate alloc];
[(NSApplication*)NSApp setDelegate:[delegate init]];
if (need_new_nsapp) {
if (fl_mac_os_version >= 101300 && fl_mac_os_version < 140000 && is_bundled()) {
if (fl_mac_os_version >= 101300 && (fl_mac_os_version < 140000 || ![NSApp isRunning]) && is_bundled()) {
[NSApp activateIgnoringOtherApps:YES];
in_nsapp_run = true;
[NSApp run];