summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--freecell.c1
-rw-r--r--sol.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/freecell.c b/freecell.c
index dd1cc3d..28b277e 100644
--- a/freecell.c
+++ b/freecell.c
@@ -529,6 +529,7 @@ int main(int argc, char *argv[]) {
 	if (SDL_Init(SDL_INIT_VIDEO) < 0) err("SDL_Init");
 	atexit(SDL_Quit);
 
+	SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
 	SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1");
 
 	struct Paths paths;
diff --git a/sol.c b/sol.c
index 48a61a2..890ad89 100644
--- a/sol.c
+++ b/sol.c
@@ -327,6 +327,8 @@ int main(int argc, char *argv[]) {
 	if (SDL_Init(SDL_INIT_VIDEO) < 0) err("SDL_Init");
 	atexit(SDL_Quit);
 
+	SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
+
 	struct Paths paths;
 	if (assetPaths(&paths) < 0) err("SDL_GetPrefPath");