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.4@13131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
97c0c6a024
commit
3be39b03b4
@ -1222,6 +1222,8 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
|
||||
{
|
||||
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;
|
||||
if (fabs([[nsw contentView] frame].size.height - window->h() * fl_graphics_driver->scale()) > 5.) {
|
||||
// the contentView, but not the window frame, is resized. This happens with tabbed windows.
|
||||
[self windowDidResize:notif];
|
||||
|
Loading…
x
Reference in New Issue
Block a user