diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-12 19:02:15 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-12 19:02:15 +0200 |
| commit | dd687e7fbc247f9f269863edb796c6f111570bb0 (patch) | |
| tree | 8f11c1272ef448fbc16d0dadb815988272b656aa | |
| parent | 874ccfe645f09dc90b2d8825ada95e1965714f21 (diff) | |
Fix GUI scaling in presence of un-show()'n subwindows (macOS)
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
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 |
