Skip to content

Commit

Permalink
Use maker name as part of standalone window title
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 28, 2024
1 parent b1e77c3 commit 2ffcc51
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions distrho/src/DistrhoPluginJACK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,26 @@ class PluginJack

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()
Expand Down

0 comments on commit 2ffcc51

Please sign in to comment.