From 366a5162b7ee4a349b0b94121e4edc8a81f93eed Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 20 Feb 2026 23:50:13 +0100 Subject: [PATCH] DIsable screensaver blocking via SDL in Editor --- Source/Engine/Platform/SDL/SDLPlatform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Engine/Platform/SDL/SDLPlatform.cpp b/Source/Engine/Platform/SDL/SDLPlatform.cpp index a70a91e99..3b6293c35 100644 --- a/Source/Engine/Platform/SDL/SDLPlatform.cpp +++ b/Source/Engine/Platform/SDL/SDLPlatform.cpp @@ -102,6 +102,9 @@ bool SDLPlatform::Init() SDL_SetHint(SDL_HINT_WINDOWS_RAW_KEYBOARD, "1"); SDL_SetHint(SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "1"); +#if USE_EDITOR + SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); // Allow screensaver in Editor when idle +#endif //if (InitInternal()) // return true;