Fix screensaver disabled unexpectedly by ayooh · Pull Request #6754 · Genymobile/scrcpy (original) (raw)

@ayooh

By default, scrcpy does not prevent the screensaver from running on the computer unless the --disable-screensaver option is passed.

pushed a commit that referenced this pull request

Apr 7, 2026

@ayooh @rom1v

By default, scrcpy does not prevent the screensaver from running on the computer unless the --disable-screensaver option is passed.

Otherwise, SDL_EnableScreenSaver() must be called explicitly, since SDL disables the screensaver by default.

Refs <https://wiki.libsdl.org/SDL3/SDL_DisableScreenSaver> PR #6754 <#6754>

Signed-off-by: Romain Vimont rom@rom1v.com

rom1v added a commit that referenced this pull request

Apr 7, 2026

@rom1v

Some hints can be useful even when window is dsabled.

Refs #6754 <#6754>

rom1v added a commit that referenced this pull request

Apr 7, 2026

@rom1v

SDL disables the screensaver by default. It can be configured via a hint instead of explicitly calling SDL_EnableScreenSaver().

Refs #6754 <#6754>

rom1v added a commit that referenced this pull request

Apr 7, 2026

@rom1v

The function sdl_configure() now only sets the Ctrl+C handler on Windows. Define it only on Windows, and call it earlier.

Refs #6754 <#6754>

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})