diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-10-05 18:20:03 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-10-05 18:20:25 +0200 |
| commit | de4a5765bc4339251410d29b116fa370177b0fbe (patch) | |
| tree | 8c9c1853fda98e0e66808dea930f3f79a5cf44a0 /src | |
| parent | 1e732164054c8b5c7371020a4b1e298bc79c0fdf (diff) | |
Fix for issue #145 and for unbundled macOS apps.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 260525bc3..c7f4e41cc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1696,7 +1696,12 @@ void Fl_Cocoa_Screen_Driver::open_display_platform() { [NSApp run]; in_nsapp_run = false; } - else [NSApp finishLaunching]; + else { + [NSApp finishLaunching]; + // Unbundled app may require this so delegate receives applicationDidFinishLaunching: + // even if doc states this is sent at the end of finishLaunching. + if (!is_bundled()) [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:NO]; + } } // empty the event queue but keep system events for drag&drop of files at launch |
