diff options
author | Dustin <dustin1114@gmail.com> | 2019-10-17 15:24:21 -0400 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-17 21:24:21 +0200 |
commit | a75e9493449d90b54a140b76f6a96b684784a059 (patch) | |
tree | c96f337ee460a7f45fddf2378b1afef977d320ea /alacritty/src/cli.rs | |
parent | f1f51d3c0234831131dcaf8e5d63cc906453e51e (diff) | |
download | r-alacritty-a75e9493449d90b54a140b76f6a96b684784a059.tar.gz r-alacritty-a75e9493449d90b54a140b76f6a96b684784a059.tar.bz2 r-alacritty-a75e9493449d90b54a140b76f6a96b684784a059.zip |
Fix window title not filled by default
In the config, if `window` is undefined, the derived `Default` for the
String `title` is used, which is an empty String. This was unintended,
and causes issues in gnome-shell (e.g. in the alt-tab dialog) when the
window title is an empty string.
This commit adds a manually implemented default for the `WindowConfig`,
it's the same as the derived `Default`, except for the `title`, which
will now always be "Alacritty" as originally intended.
Diffstat (limited to 'alacritty/src/cli.rs')
-rw-r--r-- | alacritty/src/cli.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs index b0e3cc94..98edabcb 100644 --- a/alacritty/src/cli.rs +++ b/alacritty/src/cli.rs @@ -301,8 +301,7 @@ mod test { #[test] fn dynamic_title_ignoring_options_by_default() { - let mut config = Config::default(); - config.window.title = "Alacritty".to_string(); + let config = Config::default(); let old_dynamic_title = config.dynamic_title(); let config = Options::default().into_config(config); |