summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-11-06 18:28:24 +0000
committerManolo Gouy <Manolo>2016-11-06 18:28:24 +0000
commit0c878d136c585881399752700651831053b3e5a9 (patch)
treeb53345a19999c0f24281ea04087ec29bd6a8e42a /src
parent214b3c32b5a2e13674df69ce362eb6c13c3603ac (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
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];
}
}