mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
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:
+3
-1
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user