SDL2 defeats screensaver or display-sleep (MacOS X)

MacOS X 10.15.6, SDL 2.0.12.

While I am running an SDL2 app (to-front or otherwise), screensaver or display-sleep is defeated.

Is there an SDL2 option that will allow screensaver operation to automatically kick in when the system inactivity timer is exceeded?

Did SDL2 accidentally become caffeine for your Mac?

I think this is a feature - usually SDL is used for games and you don’t want the screensaver to kick in while playing (and on many platforms the screensaver isn’t stopped by joystick input, no idea about macOS).

However, you can disable this behavior, see
You can use it like SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");

1 Like

It worked… TY, so much.