diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -463,8 +463,17 @@ client_type_to_string (Client *client) static void _app_set_client_name (App *app, const gchar *client) { - const char *type = client_type_to_string (&app->client); - char *str = g_strconcat (client, " - Óðinn [", type, "]", NULL); + char *str; + + if (app->client.name != NULL && strcmp (client, app->client.name) == 0) + return; + + if (app->client.type != LWP) { + const char *type = client_type_to_string (&app->client); + str = g_strconcat (client, " - Óðinn [", type, "]", NULL); + } else { + str = g_strconcat (client, " - Óðinn", NULL); + } gtk_window_set_title (GTK_WINDOW (app->window), str); g_free (str); |