diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-01-06 02:13:55 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2022-01-08 21:52:58 +0100 |
commit | 8790d28d9aeed95f495919d70cc54a11c104dfc4 (patch) | |
tree | d191c3132f893424fb2e501ff314b8caf1f3a848 | |
parent | dee083b545750bcdecf5198fe8bf271e8c9732a0 (diff) | |
download | alacritty-8790d28d9aeed95f495919d70cc54a11c104dfc4.tar.gz alacritty-8790d28d9aeed95f495919d70cc54a11c104dfc4.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, |