Skip to content

Commit

Permalink
Fix title setting via IPC when dynamic_title is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov authored Jan 5, 2022
1 parent f717710 commit db83902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alacritty/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down Expand Up @@ -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);
}
},
Expand Down
1 change: 1 addition & 0 deletions alacritty/src/window_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit db83902

Please sign in to comment.