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

Fix first unfullscreen on fullscreen mode launched window

This commit is contained in:
Christian Duerr 2019-06-25 21:32:28 +00:00 committed by GitHub
parent 5ad1e8b75f
commit e2e25b3206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- GUI programs launched by Alacritty starting in the background on X11
- Text Cursor position when scrolling
- Performance issues while resizing Alacritty
- First unfullscreen action ignored on window launched in fullscreen mode
## 0.3.3

View file

@ -14,7 +14,7 @@ use parking_lot::MutexGuard;
use serde_json as json;
use crate::clipboard::ClipboardType;
use crate::config::{self, Config};
use crate::config::{self, Config, StartupMode};
use crate::display::OnResize;
use crate::grid::Scroll;
use crate::index::{Column, Line, Point, Side};
@ -342,7 +342,10 @@ impl<N: Notify> Processor<N> {
window_changes: Default::default(),
save_to_clipboard: config.selection.save_to_clipboard,
alt_send_esc: config.alt_send_esc(),
is_fullscreen: false,
is_fullscreen: config.window.startup_mode() == StartupMode::Fullscreen,
#[cfg(target_os = "macos")]
is_simple_fullscreen: config.window.startup_mode() == StartupMode::SimpleFullscreen,
#[cfg(not(target_os = "macos"))]
is_simple_fullscreen: false,
}
}