Use the PC name alone as the streaming window title on macOS

This commit is contained in:
Cameron Gutman 2023-10-15 13:15:38 -05:00
parent 4fd902a0d3
commit e76551cb64

View File

@ -1591,7 +1591,14 @@ void Session::execInternal()
} }
} }
// We use only the computer name on macOS to match Apple conventions where the
// app name is featured in the menu bar and the document name is in the title bar.
#ifdef Q_OS_DARWIN
std::string windowName = QString(m_Computer->name).toStdString();
#else
std::string windowName = QString(m_Computer->name + " - Moonlight").toStdString(); std::string windowName = QString(m_Computer->name + " - Moonlight").toStdString();
#endif
m_Window = SDL_CreateWindow(windowName.c_str(), m_Window = SDL_CreateWindow(windowName.c_str(),
x, x,
y, y,