about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 467e4c2c..18bcc5f9 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -292,7 +292,13 @@ _init(const int disable_tls, char *log_level)
 static void
 _shutdown(void)
 {
-    ui_clear_win_title();
+    if (prefs_get_boolean(PREF_TITLEBAR_SHOW)) {
+        if (prefs_get_boolean(PREF_TITLEBAR_GOODBYE)) {
+            ui_goodbye_title();
+        } else {
+            ui_clear_win_title();
+        }
+    }
     ui_close_all_wins();
     jabber_disconnect();
     jabber_shutdown();