From f28b89f1d04922aa1fc5c90f6623fbd2b0400f8c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 16 May 2015 07:18:08 +0000 Subject: 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 --- src/Fl.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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++) { -- cgit v1.2.3