diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-21 09:27:44 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-21 09:27:44 +0200 |
| commit | f3bfe93a5123784f26235aab909f8eaaabe5ab69 (patch) | |
| tree | 743aa30c53a386a791364e2d77e7126c0db47ee0 | |
| parent | 3f5580d49c1458a5287024f02730fda56a0f2a53 (diff) | |
Fix Fl_Cocoa_Window_Driver::fullscreen_off()
The correct order of operations is to resize the window after having set its style.
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index fe305a325..5689e470f 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3246,10 +3246,10 @@ void Fl_Cocoa_Window_Driver::fullscreen_off(int X, int Y, int W, int H) { if (pWindow->modal()) level = modal_window_level(); else if (pWindow->non_modal()) level = non_modal_window_level(); [nswin setLevel:level]; - pWindow->resize(X, Y, W, H); #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 [nswin setStyleMask:calc_win_style(pWindow)]; //10.6 #endif + pWindow->resize(X, Y, W, H); } Fl::handle(FL_FULLSCREEN, pWindow); } |
