Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions libs/openFrameworks/app/ofAppGLFWWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,13 @@ void ofAppGLFWWindow::setFullscreen(bool fullscreen){
#if defined(TARGET_OSX)
NSWindow * cocoaWindow = glfwGetCocoaWindow(windowP);
if (([cocoaWindow styleMask] & NSWindowStyleMaskFullScreen) == NSWindowStyleMaskFullScreen) {
settings.windowMode = OF_FULLSCREEN;
if (targetWindowMode == OF_WINDOW) {
[cocoaWindow toggleFullScreen:nil];
}
}
settings.windowMode = OF_FULLSCREEN;
if (targetWindowMode == OF_WINDOW) {
[cocoaWindow toggleFullScreen:nil];
}
} else {
[cocoaWindow setHasShadow:NO];
}
#endif

//we only want to change window mode if the requested window is different to the current one.
Expand Down