From dd687e7fbc247f9f269863edb796c6f111570bb0 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 12 May 2019 19:02:15 +0200 Subject: Fix GUI scaling in presence of un-show()'n subwindows (macOS) --- src/Fl_cocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3