From 42911f7598676cceba7f2d4590c7bbe99d11e173 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 2 Jan 2022 12:25:07 +0200 Subject: Tell SDL to allow screensaver --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index f765f82f..e18ab065 100644 --- a/src/main.c +++ b/src/main.c @@ -67,6 +67,7 @@ int main(int argc, char **argv) { "ECDHE-RSA-AES128-GCM-SHA256:" "DHE-RSA-AES256-GCM-SHA384"); SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); + SDL_EnableScreenSaver(); SDL_SetHint(SDL_HINT_MAC_BACKGROUND_APP, "1"); SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); #if SDL_VERSION_ATLEAST(2, 0, 8) -- cgit v1.2.3