From 0240158d4c6e4a78368f55568d4d245fa89ca41e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 9 Dec 2018 10:45:17 +0100 Subject: 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. --- src/Fl_cocoa.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3