diff options
author | nicm <nicm> | 2024-04-10 07:36:25 +0000 |
---|---|---|
committer | nicm <nicm> | 2024-04-10 07:36:25 +0000 |
commit | 553d4cba794b4f81dd42ba139f8dfb54fcd13c16 (patch) | |
tree | 0a3f3b1a5ed2b3122bf307b1862ac449d8fe603c /input.c | |
parent | c62a9ca16b8fa199904c7628f0cb95c50593af6f (diff) |
Add an option allow-set-title to forbid applications from changing the
pane title, from someone in GitHub issue 3930.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2341,7 +2341,9 @@ input_exit_osc(struct input_ctx *ictx) switch (option) { case 0: case 2: - if (screen_set_title(sctx->s, p) && wp != NULL) { + if (wp != NULL && + options_get_number(wp->options, "allow-set-title") && + screen_set_title(sctx->s, p)) { notify_pane("pane-title-changed", wp); server_redraw_window_borders(wp->window); server_status_window(wp->window); |