From c7950b30c4df75e4f7b0a99ea9c3a8deda8b0c64 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 9 Dec 2015 10:13:46 +0000 Subject: Mac OS: the present code asks the system to build the mini window image when a subwindow-less window is miniaturized, and builds itself the image when a window with subwindow is miniaturized. That is mostly OK, but it fails when a window containing a subwindow is miniaturized (a mini image is computed), deminiaturized, the subwindow is removed or hidden, and the window is miniaturized again: the old mini image is used, and that is not appropriate. The solution is to remove the FLTK-computed mini image when a window with subwindow is deminiaturized. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 4f58bc03a..ab6652f96 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1413,6 +1413,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; { fl_lock_function(); FLWindow *nsw = (FLWindow*)[notif object]; + if ([nsw miniwindowImage]) { [nsw setMiniwindowImage:nil]; } Fl_Window *window = [nsw getFl_Window]; Fl::handle(FL_SHOW, window); update_e_xy_and_e_xy_root(nsw); -- cgit v1.2.3