Skip to content
Snippets Groups Projects
Commit dbea65fa authored by Oliver Behnke's avatar Oliver Behnke
Browse files

Disable fullscreen Spaces support (macOS)

* If enabled it causes this annoying system alert sound to be played each time BOINC spawned our app via its screensaver!
parent 6dd8e2a8
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ bool WindowManager::initialize(const int width, const int height, const int fram
// allow screensaver (or we might block BOINC's own, our parent)
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
// needed to prevent a system alert sound when launched by BOINC's screensaver on macOS
SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) {
cerr << "Window system could not be initalized: " << SDL_GetError() << endl;
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment