aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/cli.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2024-04-23 17:42:16 +0200
committerGitHub <noreply@github.com>2024-04-23 15:42:16 +0000
commitce800bfde2a2121a830c2b0854749875b3aebf79 (patch)
treec6f6d7fbe150e5b457cf0713945a9bda797e6d27 /alacritty/src/cli.rs
parent90054614c241375839571d4dd2145edcb65257a6 (diff)
downloadalacritty-ce800bfde2a2121a830c2b0854749875b3aebf79.tar.gz
alacritty-ce800bfde2a2121a830c2b0854749875b3aebf79.zip
Fix dynamic title override for multiple windows
This fixes an issue where Windows spawned after the initial one through IPC or bindings would not update their title due to the initial window having its title set through the CLI. Title changes are still inhibited for additional windows when they are spawned through `alacritty msg create-window` with the `--title` CLI option added. Closes #6836.
Diffstat (limited to 'alacritty/src/cli.rs')
-rw-r--r--alacritty/src/cli.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs
index 91ba2fd6..e7f2d3ef 100644
--- a/alacritty/src/cli.rs
+++ b/alacritty/src/cli.rs
@@ -92,7 +92,6 @@ impl Options {
config.ipc_socket |= self.socket.is_some();
}
- config.window.dynamic_title &= self.window_options.window_identity.title.is_none();
config.window.embed = self.embed.as_ref().and_then(|embed| parse_hex_or_decimal(embed));
config.debug.print_events |= self.print_events;
config.debug.log_level = max(config.debug.log_level, self.log_level());
@@ -426,19 +425,6 @@ mod tests {
}
#[test]
- fn dynamic_title_overridden_by_options() {
- let mut config = UiConfig::default();
-
- let title = Some(String::from("foo"));
- let window_identity = WindowIdentity { title, ..WindowIdentity::default() };
- let new_window_options = WindowOptions { window_identity, ..WindowOptions::default() };
- let mut options = Options { window_options: new_window_options, ..Options::default() };
- options.override_config(&mut config);
-
- assert!(!config.window.dynamic_title);
- }
-
- #[test]
fn dynamic_title_not_overridden_by_config() {
let mut config = UiConfig::default();