We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900f239 commit 11cdc79Copy full SHA for 11cdc79
1 file changed
libs/openFrameworks/app/ofAppGLFWWindow.cpp
@@ -716,11 +716,13 @@ void ofAppGLFWWindow::setFullscreen(bool fullscreen){
716
#if defined(TARGET_OSX)
717
NSWindow * cocoaWindow = glfwGetCocoaWindow(windowP);
718
if (([cocoaWindow styleMask] & NSWindowStyleMaskFullScreen) == NSWindowStyleMaskFullScreen) {
719
- settings.windowMode = OF_FULLSCREEN;
720
- if (targetWindowMode == OF_WINDOW) {
721
- [cocoaWindow toggleFullScreen:nil];
722
- }
723
+ settings.windowMode = OF_FULLSCREEN;
+ if (targetWindowMode == OF_WINDOW) {
+ [cocoaWindow toggleFullScreen:nil];
+ }
+ } else {
724
+ [cocoaWindow setHasShadow:NO];
725
726
#endif
727
728
//we only want to change window mode if the requested window is different to the current one.
0 commit comments