summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index daf5e443e..379c4ced8 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1904,6 +1904,8 @@ void Fl::delete_widget(Fl_Widget *wi) {
// if the widget is shown(), hide() it (FLTK 1.3.4)
if (wi->visible_r()) wi->hide();
+ Fl_Window *win = wi->as_window();
+ if (win && win->shown()) win->hide(); // case of iconified window
// don't add the same widget twice to the widget delete list
for (int i = 0; i < num_dwidgets; i++) {