From afa7434f0c0d4ed5dab8e556fd319ad3f4c9a681 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 25 Feb 2026 18:01:17 +0100 Subject: [PATCH] Restore correct support of fl_open_callback() under macOS 26 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 0ef906d20..387d6bbd2 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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];