diff options
| author | Manolo Gouy <Manolo> | 2017-10-15 17:36:58 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-10-15 17:36:58 +0000 |
| commit | 507e39fd194b79ec5fcdcbc63253946736f725ea (patch) | |
| tree | 57b3bc474cefdad9bad46b6d144957ccc2d475d3 /src | |
| parent | a8dbc90d992e13ee26f85effd21bfe8b9ba44e1a (diff) | |
MacOS 10.13: fix problem with window made fullscreen by clicking on green window button - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 5511ae167..acb9dfc91 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1474,7 +1474,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; @implementation FLAppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)notification { - if (fl_mac_os_version >= 101300) [NSApp stop:nil]; + if (fl_mac_os_version >= 101300 && [NSApp isRunning]) [NSApp stop:nil]; } - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender { |
