mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 22:10:56 +00:00
Add option to allow PC to sleep while streaming
This commit is contained in:
1 parent
73d84dc13f
commit
97d8274911
5 files changed
+30
-2
No files matched your search
@@ -1468,8 +1468,10 @@ void Session::execInternal()
|
||||
// on macOS.
|
||||
SDL_StopTextInput();
|
||||
|
||||
// Disable the screen saver
|
||||
SDL_DisableScreenSaver();
|
||||
// Disable the screen saver if requested or running as embedded platform
|
||||
if (m_Preferences->keepAwake || !WMUtils::isRunningDesktopEnvironment()) {
|
||||
SDL_DisableScreenSaver();
|
||||
}
|
||||
|
||||
// Hide Qt's fake mouse cursor on EGLFS systems
|
||||
if (QGuiApplication::platformName() == "eglfs") {
|
||||
|
||||
Reference in new issue
Block a user