summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-05-16 07:18:08 +0000
committerManolo Gouy <Manolo>2015-05-16 07:18:08 +0000
commitf28b89f1d04922aa1fc5c90f6623fbd2b0400f8c (patch)
tree937d08b292ac886916fceacf19b880a05a4e6566 /src
parent0e633c487298d3bf7e1163e00785456ae6e0637b (diff)
Fl::delete_widget() was changed in 1.3.4 to immediately hide the widget,
but the case of an iconified window (visible() is false and shown() is true) was forgotten. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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++) {