diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2018-12-09 10:45:17 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2018-12-09 10:45:17 +0100 |
| commit | 0240158d4c6e4a78368f55568d4d245fa89ca41e (patch) | |
| tree | ec6bf76b04de7d91a5962a206378d50def83e7d5 | |
| parent | 433f9b8ccb8264390b54bf831a2fbbce72dc6f50 (diff) | |
macOS: creation of window with subwindow in iconized form - continued.
With macOS 10.13 and 10.14 at least, recursivelySendToSubwindows:@selector(display)
is not necessary in the new procedure where the window icon is computed in
windowDidMiniaturize rather than in windowWillMiniaturize as was done before.
| -rw-r--r-- | src/Fl_cocoa.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 606bf33df..2d6f6d453 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3182,7 +3182,10 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() if (show_iconic()) { show_iconic(0); w->handle(FL_SHOW); // create subwindows if any - [cw recursivelySendToSubwindows:@selector(display)]; // draw the window and its subwindows before its icon is computed + if (fl_mac_os_version < 101300) { // TODO: threshold may be smaller + // draw the window and its subwindows before its icon is computed + [cw recursivelySendToSubwindows:@selector(display)]; + } [cw miniaturize:nil]; } else if (w->parent()) { // a subwindow [cw setIgnoresMouseEvents:YES]; // needs OS X 10.2 |
