From fea125eca98855395d0f201f3a313ccb981419a3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 6 May 2019 16:50:42 +0200 Subject: Restore forcing the position of a window before it's shown --- src/Fl_cocoa.mm | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 1c4aef517..6e5f496de 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3322,6 +3322,7 @@ void Fl_Cocoa_Window_Driver::show() { * resize a window */ void Fl_Cocoa_Window_Driver::resize(int X, int Y, int W, int H) { + if (!pWindow->shown() && (X != x() || Y != y())) force_position(1); if (view_resized() || !visible_r()) { pWindow->Fl_Group::resize(X, Y, W, H); } else { -- cgit v1.2.3