Skip to content

Commit

Permalink
Do not disable screensaver
Browse files Browse the repository at this point in the history
Keep screensaver enabled while scrcpy is running.

Fixes <#380>.
  • Loading branch information
rom1v committed Jan 18, 2019
1 parent b343a5d commit d71e036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d71e036

Please sign in to comment.