From 59823515cfe7cae82e241c255d920b10e889a647 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 23 Dec 2015 09:33:06 +0000 Subject: 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 --- src/Fl_cocoa.mm | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3