summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 070eeeddc..5cfe6dad9 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1896,6 +1896,7 @@ static int fake_X_wm(Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by) {
}
bt = get_window_frame_sizes(w, &bx, &by);
}
+ if (w->parent()) return 0;
// The coordinates of the whole window, including non-client area
xoff = bx;
yoff = by + bt;
@@ -1907,8 +1908,6 @@ static int fake_X_wm(Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by) {
W = w->w()*s+dx;
H = w->h()*s+dy;
- if (w->parent()) return 0;
-
// Proceed to positioning the window fully inside the screen, if possible
// let's get a little elaborate here. Mac OS X puts a lot of stuff on the desk