alacritty

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0d47cd25b90deecc2dbf40c8361d2310049fdde7
parent 6f4ad9bb4f82bfdc4d8aac883a65ddd8c6acd45d
Author: dm1try <me@dmitry.it>
Date:   Sat, 24 Nov 2018 02:41:06 +0300

Ignore initial size if the window is maximized on start


Diffstat:
Msrc/display.rs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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();