diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index a8876a641..fe4e05477 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -2674,6 +2674,10 @@ int main(int argc, char *argv[]) } #endif +#ifdef __APPLE__ + DisableFullScreenViewMenuItem(); +#endif + #ifdef _WIN32 obs_init_win32_crash_handler(); SetErrorMode(SEM_FAILCRITICALERRORS); diff --git a/UI/platform-osx.mm b/UI/platform-osx.mm index c558c7a00..fe1fa2616 100644 --- a/UI/platform-osx.mm +++ b/UI/platform-osx.mm @@ -235,6 +235,13 @@ void EnableOSXDockIcon(bool enable) NSApplicationActivationPolicyProhibited]; } +void DisableFullScreenViewMenuItem() +{ + [[NSUserDefaults standardUserDefaults] + setBool:NO + forKey:@"NSFullScreenMenuItemEverywhere"]; +} + /* * This custom NSApplication subclass makes the app compatible with CEF. Qt * also has an NSApplication subclass, but it doesn't conflict thanks to Qt diff --git a/UI/platform.hpp b/UI/platform.hpp index 7e7d47ed1..080139547 100644 --- a/UI/platform.hpp +++ b/UI/platform.hpp @@ -69,6 +69,7 @@ void EnableOSXDockIcon(bool enable); void InstallNSApplicationSubclass(); void disableColorSpaceConversion(QWidget *window); void CheckAppWithSameBundleID(bool &already_running); +void DisableFullScreenViewMenuItem(); #endif #ifdef __linux__ void RunningInstanceCheck(bool &already_running);