Skip to content

Display and control your Android device

Do not disable screensaver

Romain Vimontd71e036f3a16
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;
}