Add PC name to streaming window title

Fixes #1039
This commit is contained in:
Cameron Gutman 2023-07-23 01:16:24 -05:00
parent 202ef41894
commit bfcd373eec

View file

@ -1585,7 +1585,8 @@ void Session::execInternal()
} }
} }
m_Window = SDL_CreateWindow("Moonlight", std::string windowName = QString(m_Computer->name + " - Moonlight").toStdString();
m_Window = SDL_CreateWindow(windowName.c_str(),
x, x,
y, y,
width, width,
@ -1596,7 +1597,7 @@ void Session::execInternal()
"SDL_CreateWindow() failed with platform flags: %s", "SDL_CreateWindow() failed with platform flags: %s",
SDL_GetError()); SDL_GetError());
m_Window = SDL_CreateWindow("Moonlight", m_Window = SDL_CreateWindow(windowName.c_str(),
x, x,
y, y,
width, width,