summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-12-09 10:13:46 +0000
committerManolo Gouy <Manolo>2015-12-09 10:13:46 +0000
commitc7950b30c4df75e4f7b0a99ea9c3a8deda8b0c64 (patch)
tree52fd72692b9181239a25bbc0c2661efd109ac79a /src
parent4bc4736eb7409a84185b42dc9cb9c16388519383 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm1
1 files changed, 1 insertions, 0 deletions
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);