1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Ignore initial size if the window is maximized on start

This commit is contained in:
dm1try 2018-11-24 02:41:06 +03:00 committed by Christian Duerr
parent 6f4ad9bb4f
commit 0d47cd25b9

View file

@ -161,7 +161,10 @@ impl Display {
let mut padding_x = (f64::from(config.padding().x) * dpr).floor(); let mut padding_x = (f64::from(config.padding().x) * dpr).floor();
let mut padding_y = (f64::from(config.padding().y) * 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 // Calculate new size based on cols/lines specified in config
let width = cell_width as u32 * dimensions.columns_u32(); let width = cell_width as u32 * dimensions.columns_u32();
let height = cell_height as u32 * dimensions.lines_u32(); let height = cell_height as u32 * dimensions.lines_u32();