Restore correct support of fl_open_callback() under macOS 26
This commit is contained in:
parent
f2424bf1fc
commit
afa7434f0c
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user