Fix case when show() of a subwindow whose parent is not shown yet.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2014-12-11 20:34:47 +00:00
parent 879a8fbabf
commit bf07d892a3

View File

@ -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() ) {