diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-06 16:50:42 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-06 16:50:42 +0200 |
| commit | fea125eca98855395d0f201f3a313ccb981419a3 (patch) | |
| tree | 0b44347870d47ca9356b5abbce40d513cd7cb741 /src | |
| parent | 38cf195727822fc873c6b08374b04504e7e362ab (diff) | |
Restore forcing the position of a window before it's shown
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
