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.
This commit is contained in:
ManoloFLTK 2018-12-09 10:45:17 +01:00
parent 433f9b8ccb
commit 0240158d4c

View File

@ -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