From bfcd373eece35adf0a23fea5cc1623b0fcf53032 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 23 Jul 2023 01:16:24 -0500 Subject: [PATCH] Add PC name to streaming window title Fixes #1039 --- app/streaming/session.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index a8ec669c..1f0b48fc 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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, y, width, @@ -1596,7 +1597,7 @@ void Session::execInternal() "SDL_CreateWindow() failed with platform flags: %s", SDL_GetError()); - m_Window = SDL_CreateWindow("Moonlight", + m_Window = SDL_CreateWindow(windowName.c_str(), x, y, width,