mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 04:31:25 +08:00
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:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user