summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-02-07 17:11:22 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-02-07 17:11:22 +0100
commit83bd04e0a32c42923d1a2dbcada02e0542b78044 (patch)
tree00a8ec4a9ba3b548c1043c7bda30eaf53c78aa2b
parentd068fbf9dee73c86773250d143e97d60b91929d3 (diff)
Fix Fl_Cocoa_Window_Driver::resize when called before the window is show()'n.
-rw-r--r--src/Fl_cocoa.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 060b678fc..e669cbb21 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3287,6 +3287,7 @@ 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);
+ if (!pWindow->shown()) pWindow->init_sizes();
} else {
NSPoint pt = FLTKtoCocoa(pWindow, X, Y, H);
FLWindow *xid = fl_xid(pWindow);