mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Ignore initial size if the window is maximized on start
This commit is contained in:
parent
6f4ad9bb4f
commit
0d47cd25b9
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue