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
This commit is contained in:
parent
527d5943d0
commit
59823515cf
@ -1868,7 +1868,6 @@ static void get_window_frame_sizes(int &bx, int &by, int &bt) {
|
|||||||
static int top, left, bottom;
|
static int top, left, bottom;
|
||||||
if (first) {
|
if (first) {
|
||||||
first = false;
|
first = false;
|
||||||
if (NSApp == nil) fl_open_display();
|
|
||||||
NSRect inside = { {20,20}, {100,100} };
|
NSRect inside = { {20,20}, {100,100} };
|
||||||
NSRect outside = [NSWindow frameRectForContentRect:inside styleMask:NSTitledWindowMask];
|
NSRect outside = [NSWindow frameRectForContentRect:inside styleMask:NSTitledWindowMask];
|
||||||
left = int(outside.origin.x - inside.origin.x);
|
left = int(outside.origin.x - inside.origin.x);
|
||||||
|
Loading…
Reference in New Issue
Block a user