aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spectrogram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spectrogram.c b/spectrogram.c
index cf93a89..ec2e9ce 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -269,6 +269,8 @@ main(int argc, char **argv)
int width, height;
int pressed = 0;
+ setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 0);
+
if (SDL_Init(SDL_INIT_VIDEO) < 0)
errx(1, "SDL init failed");