MacOS: further support of scenarios mixing miniaturize/deminiaturize/change screen configurations.

Test scenario:
 - use 2-screen configuration, one retina, one non-retina as main screen
 - put subwindow-containing window on retina
 - miniaturize window
 - close retina screen
 - de-miniaturize window
 The subwindow was wrong without this change.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2018-11-23 09:52:26 +00:00
parent 433b77e5d9
commit a0b4e146e8
+3 -1
View File
@@ -1421,9 +1421,11 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
}
- (void)windowDidMove:(NSNotification *)notif
{
fl_lock_function();
FLWindow *nsw = (FLWindow*)[notif object];
Fl_Window *window = [nsw getFl_Window];
// don't process move for a subwindow of a miniaturized top window
if (window->parent() && [fl_xid(window->top_window()) isMiniaturized]) return;
fl_lock_function();
resize_from_system = window;
NSPoint pt2;
pt2 = [nsw convertBaseToScreen:NSMakePoint(0, [[nsw contentView] frame].size.height)];