MacOS: fix possible issue with fullscreen windows containing hidden subwindows

An error occurred with the tabs test program :
 - activate the last tab (containing 3 subwindows)
 - activate another tab (the subwindows get hidden)
 - set window fullscreen ===> the subwindows are visible, but they should not
 - reactivate the last tab ===> the subwindows are not where they should be

The new code does not show this error.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-11-06 18:37:54 +00:00
parent 7c248d5ec7
commit b73e953b42

View File

@ -1543,7 +1543,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
int count = [windows count];
for (int i = 0; i < count; i++) {
NSWindow *win = [windows objectAtIndex:i];
if ([win isKindOfClass:[FLWindow class]] && ![win parentWindow]) {
if ([win isKindOfClass:[FLWindow class]] && ![win parentWindow] && [win isVisible]) {
[[NSNotificationCenter defaultCenter] postNotificationName:NSWindowDidMoveNotification object:win];
}
}