summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 0a18c5496..99311c8eb 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1143,7 +1143,7 @@ void fl_open_callback(void (*cb)(const char *)) {
Fl_X *x;
for (x = Fl_X::first;x;x = x->next) {
Fl_Window *w = x->w;
- if ( !w->parent() ) {
+ if ( !w->parent() && ![x->xid isMiniaturized]) {
Fl::handle( FL_SHOW, w);
}
}