summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-05-12 19:02:15 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-05-12 19:02:15 +0200
commitdd687e7fbc247f9f269863edb796c6f111570bb0 (patch)
tree8f11c1272ef448fbc16d0dadb815988272b656aa
parent874ccfe645f09dc90b2d8825ada95e1965714f21 (diff)
Fix GUI scaling in presence of un-show()'n subwindows (macOS)
-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