diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-01-06 02:13:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 02:13:55 +0300 |
commit | db8390231956f4029aae2e48ce31bcfde801d021 (patch) | |
tree | ed75e439e453f525d3e8ef1c23dbb83d924597c2 | |
parent | f7177101eda589596ab08866892bd4629bd1ef44 (diff) | |
download | alacritty-db8390231956f4029aae2e48ce31bcfde801d021.tar.gz alacritty-db8390231956f4029aae2e48ce31bcfde801d021.zip |
Fix title setting via IPC when dynamic_title is enabled
-rw-r--r-- | alacritty/src/event.rs | 3 | ||||
-rw-r--r-- | alacritty/src/window_context.rs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 462c9416..24762dad 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -186,6 +186,7 @@ pub struct ActionContext<'a, N, T> { pub search_state: &'a mut SearchState, pub font_size: &'a mut Size, pub dirty: &'a mut bool, + pub preserve_title: bool, #[cfg(not(windows))] pub master_fd: RawFd, #[cfg(not(windows))] @@ -1039,7 +1040,7 @@ impl input::Processor<EventProxy, ActionContext<'_, Notifier, EventProxy>> { }, EventType::Terminal(event) => match event { TerminalEvent::Title(title) => { - if self.ctx.config.window.dynamic_title { + if !self.ctx.preserve_title && self.ctx.config.window.dynamic_title { self.ctx.window().set_title(title); } }, diff --git a/alacritty/src/window_context.rs b/alacritty/src/window_context.rs index 795b3f73..6af46e03 100644 --- a/alacritty/src/window_context.rs +++ b/alacritty/src/window_context.rs @@ -280,6 +280,7 @@ impl WindowContext { master_fd: self.master_fd, #[cfg(not(windows))] shell_pid: self.shell_pid, + preserve_title: self.preserve_title, event_proxy, event_loop, clipboard, |