diff options
author | Jonathan Dahan <hi@jonathan.is> | 2018-11-19 16:23:47 -0500 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-19 21:23:47 +0000 |
commit | 2ede659134936fe294f454a6b2247e1918af6f51 (patch) | |
tree | 13f97679a4fd29f267a84338206e5e6f8427bc17 /src/window.rs | |
parent | fc04bc1e6dfc6f1bd3f0a70b1d6d2b6cbc551d40 (diff) | |
download | alacritty-2ede659134936fe294f454a6b2247e1918af6f51.tar.gz alacritty-2ede659134936fe294f454a6b2247e1918af6f51.zip |
Add option for launching Alacritty maximized
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.rs b/src/window.rs index 31b7c766..de3eb9a6 100644 --- a/src/window.rs +++ b/src/window.rs @@ -300,6 +300,7 @@ impl Window { .with_title(title) .with_visibility(false) .with_transparency(true) + .with_maximized(window_config.start_maximized()) .with_decorations(decorations) } @@ -317,6 +318,7 @@ impl Window { .with_visibility(cfg!(windows)) .with_decorations(decorations) .with_transparency(true) + .with_maximized(window_config.start_maximized()) .with_window_icon(Some(icon)) } @@ -327,7 +329,8 @@ impl Window { let window = WindowBuilder::new() .with_title(title) .with_visibility(false) - .with_transparency(true); + .with_transparency(true) + .with_maximized(window_config.start_maximized()); match window_config.decorations() { Decorations::Full => window, |