summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-12-07 20:10:07 +0000
committerManolo Gouy <Manolo>2015-12-07 20:10:07 +0000
commitade095f240676888176ba6fb3a4f1c21fd3bc2ab (patch)
treedc404f871466d45a49d27c81a642e4471a45208d /src
parentcaba454f3957e2ea28dc2a477fa6e8915d64f35b (diff)
Mac OS: added visibility test necessary after a subwindow-containing group was hidden.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10951 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 91e8a0ddc..4f58bc03a 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -735,7 +735,7 @@ void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data)
if (!NSEqualRects(rp, [self frame])) {
[self setFrame:rp display:YES];
}
- if (![self parentWindow]) {
+ if (w->visible_r() && ![self parentWindow]) {
[pxid addChildWindow:self ordered:NSWindowAbove]; // needs OS X 10.2
[self orderWindow:NSWindowAbove relativeTo:[pxid windowNumber]]; // necessary under 10.3
}