Skip to content

Commit 11cdc79

Browse files
authored
macOS GLFW - no shadow when fullscreen (#7605)
#changelog #glfw
1 parent 900f239 commit 11cdc79

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

libs/openFrameworks/app/ofAppGLFWWindow.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,13 @@ void ofAppGLFWWindow::setFullscreen(bool fullscreen){
716716
#if defined(TARGET_OSX)
717717
NSWindow * cocoaWindow = glfwGetCocoaWindow(windowP);
718718
if (([cocoaWindow styleMask] & NSWindowStyleMaskFullScreen) == NSWindowStyleMaskFullScreen) {
719-
settings.windowMode = OF_FULLSCREEN;
720-
if (targetWindowMode == OF_WINDOW) {
721-
[cocoaWindow toggleFullScreen:nil];
722-
}
723-
}
719+
settings.windowMode = OF_FULLSCREEN;
720+
if (targetWindowMode == OF_WINDOW) {
721+
[cocoaWindow toggleFullScreen:nil];
722+
}
723+
} else {
724+
[cocoaWindow setHasShadow:NO];
725+
}
724726
#endif
725727

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

0 commit comments

Comments
 (0)