Allow the screensaver toggle to work even if running on an embedded platform
This commit is contained in:
parent
edeea65c3e
commit
ce2a01fc59
2 changed files with 2 additions and 3 deletions
|
|
@ -1468,8 +1468,8 @@ void Session::execInternal()
|
|||
// on macOS.
|
||||
SDL_StopTextInput();
|
||||
|
||||
// Disable the screen saver if requested or running as embedded platform
|
||||
if (m_Preferences->keepAwake || !WMUtils::isRunningDesktopEnvironment()) {
|
||||
// Disable the screen saver if requested
|
||||
if (m_Preferences->keepAwake) {
|
||||
SDL_DisableScreenSaver();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue