MacOS: fix creation of fullscreen GL window

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-09-03 15:47:48 +00:00
parent 821be0b0eb
commit ee3fbb849e
2 changed files with 3 additions and 3 deletions

View File

@ -2945,7 +2945,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
[cw center];
} else if (w->non_modal()) {
[cw center];
} else {
} else if (!w->fullscreen_active()) {
static NSPoint delta = NSZeroPoint;
delta = [cw cascadeTopLeftFromPoint:delta];
}

View File

@ -256,8 +256,8 @@ void Fl_Cocoa_Window_Driver::fullscreen_on() {
pWindow->_set_fullscreen();
/* On OS X < 10.6, it is necessary to recreate the window. This is done
with hide+show. */
hide();
show();
pWindow->hide();
pWindow->show();
Fl::handle(FL_FULLSCREEN, pWindow);
}