diff options
author | dm1try <me@dmitry.it> | 2018-11-24 02:41:06 +0300 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-23 23:41:06 +0000 |
commit | 0d47cd25b90deecc2dbf40c8361d2310049fdde7 (patch) | |
tree | 9cfa1f3a5a23bc14c60fe7f973042e5cef526208 | |
parent | 6f4ad9bb4f82bfdc4d8aac883a65ddd8c6acd45d (diff) | |
download | alacritty-0d47cd25b90deecc2dbf40c8361d2310049fdde7.tar.gz alacritty-0d47cd25b90deecc2dbf40c8361d2310049fdde7.zip |
Ignore initial size if the window is maximized on start
-rw-r--r-- | src/display.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs index 12842649..8696bf10 100644 --- a/src/display.rs +++ b/src/display.rs @@ -161,7 +161,10 @@ impl Display { let mut padding_x = (f64::from(config.padding().x) * dpr).floor(); let mut padding_y = (f64::from(config.padding().y) * dpr).floor(); - if dimensions.columns_u32() > 0 && dimensions.lines_u32() > 0 { + if dimensions.columns_u32() > 0 + && dimensions.lines_u32() > 0 + && !config.window().start_maximized() + { // Calculate new size based on cols/lines specified in config let width = cell_width as u32 * dimensions.columns_u32(); let height = cell_height as u32 * dimensions.lines_u32(); |