From f3bfe93a5123784f26235aab909f8eaaabe5ab69 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 21 Apr 2019 09:27:44 +0200 Subject: Fix Fl_Cocoa_Window_Driver::fullscreen_off() The correct order of operations is to resize the window after having set its style. --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3