From e76551cb649a6baf38698da1aac86f407f9d6e82 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 15 Oct 2023 13:15:38 -0500 Subject: [PATCH] Use the PC name alone as the streaming window title on macOS --- app/streaming/session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index d7672309..60103806 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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(); +#endif + m_Window = SDL_CreateWindow(windowName.c_str(), x, y,