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
This commit is contained in:
parent
4bc4736eb7
commit
c7950b30c4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user