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 and they should not
- reactivate the last tab ===> the subwindows are not where they should be

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-11-06 18:28:24 +00:00
parent 214b3c32b5
commit 0c878d136c

View File

@ -1513,7 +1513,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];
}
}