diff options
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 23b630c35..dcbee5d27 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2882,7 +2882,9 @@ void Fl_Window::show() { labeltype(FL_NO_LABEL); } Fl_Tooltip::exit(this); - if (!shown() && (!parent() || ![fl_xid(top_window()) isMiniaturized])) { + Fl_X *top = NULL; + if (parent()) top = top_window()->i; + if (!shown() && (!parent() || (top && ![top->xid isMiniaturized]))) { Fl_X::make(this); } else { if ( !parent() ) { |
