summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-18 14:35:05 +0000
committerManolo Gouy <Manolo>2017-07-18 14:35:05 +0000
commitcfe6e8e4b6dc4c307563d7ce4aa633ab99e0ef9c (patch)
tree19c5f33e67db3cbd7cb485591d68f233346d831e /src
parent65b334777fde7f87429693764708732f4e1c8a02 (diff)
Simplify handling of the windowDidMove notification since MacOS 10.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index b97b032ac..cb4423b5c 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1317,13 +1317,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
if (parent && window->as_gl_window()) parent->redraw();
}
resize_from_system = NULL;
- // before 10.13: OS sends windowDidMove to parent window only,
- // FLTK recursively sends setSubwindowFrame to children,
- // setSubwindowFrame sends setFrame, this triggers windowDidMove to child which sets child position.
- //
- // with 10.13: OS sends windowDidMove to parent window and then to children
+ // at least since MacOS 10.10: OS sends windowDidMove to parent window and then to children
// FLTK sets position of parent and children. setSubwindowFrame is no longer necessary.
- if (fl_mac_os_version < 101300) [nsw recursivelySendToSubwindows:@selector(setSubwindowFrame)];
+ if (fl_mac_os_version < 101000) [nsw recursivelySendToSubwindows:@selector(setSubwindowFrame)];
[nsw checkSubwindowFrame];
fl_unlock_function();
}