summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-09-10 14:53:16 +0000
committerManolo Gouy <Manolo>2015-09-10 14:53:16 +0000
commitbf5822bb8bcbf513498dc349104299fde3f58f70 (patch)
treea5d434d24f4c39d9ed2fcae8781a7921a3455fc3 /src
parent157eb68eaef26026ae20fe051962d3414142fda1 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index f8342c8c0..a6c4c2dc2 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -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