diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index 08723ef3b6..49e53e00b0 100644 --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -523,6 +523,8 @@ static std::optional InitializeSDL() /* Check if the video-driver is already initialized. */ if (SDL_WasInit(SDL_INIT_VIDEO) != 0) return std::nullopt; + SDL_SetHint(SDL_HINT_APP_NAME, "OpenTTD"); + if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) return SDL_GetError(); return std::nullopt; }