From d71e036f3a16877f20299b87ae15fed7bbc3b382 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 18 Jan 2019 23:17:31 +0100 Subject: [PATCH] Do not disable screensaver Keep screensaver enabled while scrcpy is running. Fixes . --- app/src/screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/screen.c b/app/src/screen.c index 5d7a4009..703def32 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -30,6 +30,9 @@ SDL_bool sdl_init_and_configure(void) { } #endif + // Do not disable the screensaver when scrcpy is running + SDL_EnableScreenSaver(); + return SDL_TRUE; }