ui/sdl2: Allow host to power down screen
authorBernhard Beschow <shentey@gmail.com>
Sun, 12 May 2024 09:59:45 +0000 (11:59 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 May 2024 13:14:13 +0000 (17:14 +0400)
commit2e701e6785cd8cc048c608751c6e4f6253c67ab6
tree4f4db5c5ab159ad4e7bbf9ec8f05215592ae82fd
parent37e91415018db3656b46cdea8f9e4d47b3ff130d
ui/sdl2: Allow host to power down screen

By default, SDL disables the screen saver which prevents the host from powering
down the screen even if the screen is locked. This results in draining the
battery needlessly when the host isn't connected to a wall charger. Fix that by
enabling the screen saver.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20240512095945.1879-1-shentey@gmail.com>
ui/sdl2.c