diff options
| author | Manolo Gouy <Manolo> | 2017-10-18 14:53:05 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-10-18 14:53:05 +0000 |
| commit | dba6b85b4df35722b559c50b1d6a306683458bd9 (patch) | |
| tree | 59bb142defdb44f832637dea28c0945e45362a07 | |
| parent | 4ec7403f122a295744043048687a4301ec8fbba5 (diff) | |
Mac OS 10.13 "High Sierra": restore possibility to run app from a command line and find it activated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 753fef6bc..bcb561e29 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1748,6 +1748,7 @@ void Fl_Cocoa_Screen_Driver::open_display_platform() { [(NSApplication*)NSApp setDelegate:[delegate init]]; if (need_new_nsapp) { if (fl_mac_os_version >= 101300 ) { + [NSApp activateIgnoringOtherApps:YES]; // necessary to run app from command line in_nsapp_run = true; [NSApp run]; in_nsapp_run = false; |
