From fcb60abc132b12ccf8fb8ff215acc924a44773d6 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 4 Jul 2021 17:59:40 +0200 Subject: config: add locked-title=no|yes Closes #386 --- terminal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index bede6811..488ac316 100644 --- a/terminal.c +++ b/terminal.c @@ -2634,9 +2634,13 @@ term_xcursor_update(struct terminal *term) void term_set_window_title(struct terminal *term, const char *title) { + if (term->conf->locked_title && term->window_title_has_been_set) + return; + free(term->window_title); term->window_title = xstrdup(title); render_refresh_title(term); + term->window_title_has_been_set = true; } void -- cgit v1.3