diff options
| author | Manolo Gouy <Manolo> | 2015-12-23 09:33:06 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-12-23 09:33:06 +0000 |
| commit | 59823515cfe7cae82e241c255d920b10e889a647 (patch) | |
| tree | f72cb8907a4b1c79408310653f0a1498c840d9ef /src | |
| parent | 527d5943d039d17a3c88662170b317609ed0e3c8 (diff) | |
Mac OS: It is not necessary to open the display to send the
+[NSWindow frameRectForContentRect:styleMask:] message
(checked on 10.11 and 10.3). Therefore fluid -c will run without
opening the display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 9dc157424..f605df0f4 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1868,7 +1868,6 @@ static void get_window_frame_sizes(int &bx, int &by, int &bt) { static int top, left, bottom; if (first) { first = false; - if (NSApp == nil) fl_open_display(); NSRect inside = { {20,20}, {100,100} }; NSRect outside = [NSWindow frameRectForContentRect:inside styleMask:NSTitledWindowMask]; left = int(outside.origin.x - inside.origin.x); |
