Mac OS: slightly simpler code that does just the same thing.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2015-09-10 14:53:16 +00:00
parent 157eb68eae
commit bf5822bb8b
+2 -3
View File
@@ -3012,9 +3012,8 @@ void Fl_X::make(Fl_Window* w)
[cw setDelegate:[FLWindowDelegate singleInstance]];
if (fl_show_iconic) {
fl_show_iconic = 0;
// w->handle(FL_SHOW); this creates subwindows correctly, but they are deiconized at a wrong location
if (fl_mac_os_version < 101100) [myview display]; // draws the view before its icon is computed
[cw miniaturize:nil]; // on 10.11 this sends drawRect:
[myview display]; // draws the view before its icon is computed
[cw miniaturize:nil];
} else if (w->parent()) { // a subwindow
[cw setIgnoresMouseEvents:YES]; // needs OS X 10.2
// next 2 statements so a subwindow doesn't leak out of its parent window