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:
parent
433f9b8ccb
commit
0240158d4c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user