From 0c878d136c585881399752700651831053b3e5a9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 6 Nov 2016 18:28:24 +0000 Subject: [PATCH] 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 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 1a47a3aba..67cda04f7 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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]; } }