From 2ffcc51e1153d6f79987f9713fafbebf4fc8aa9a Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 28 Feb 2024 11:09:51 +0100 Subject: [PATCH] Use maker name as part of standalone window title Signed-off-by: falkTX --- distrho/src/DistrhoPluginJACK.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/distrho/src/DistrhoPluginJACK.cpp b/distrho/src/DistrhoPluginJACK.cpp index 5a76f4c4..f9d6cd09 100644 --- a/distrho/src/DistrhoPluginJACK.cpp +++ b/distrho/src/DistrhoPluginJACK.cpp @@ -234,20 +234,26 @@ public: std::fflush(stdout); -#if DISTRHO_PLUGIN_HAS_UI + #if DISTRHO_PLUGIN_HAS_UI + String title(fPlugin.getMaker()); + + if (title.isNotEmpty()) + title += ": "; + if (const char* const name = jackbridge_get_client_name(fClient)) - fUI.setWindowTitle(name); + title += name; else - fUI.setWindowTitle(fPlugin.getName()); + title += fPlugin.getName(); + fUI.setWindowTitle(title); fUI.exec(this); -#else + #else while (! gCloseSignalReceived) d_sleep(1); // unused (void)winId; -#endif + #endif } ~PluginJack()