Skip to content

Commit

Permalink
Mac OS: It is not necessary to open the display to send the
Browse files Browse the repository at this point in the history
+[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
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 23, 2015
1 parent 527d594 commit 5982351
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Fl_cocoa.mm
Expand Up @@ -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);
Expand Down

0 comments on commit 5982351

Please sign in to comment.