diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-06-25 21:32:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-25 21:32:28 +0000 |
commit | e2e25b3206ec6c99592ef9ee829426cad62e4d29 (patch) | |
tree | 9c775f14767cf95f1d4fd97842a4e224f44033be /alacritty_terminal | |
parent | 5ad1e8b75fb484c9ca4a94914026a5a15bab5a8c (diff) | |
download | alacritty-e2e25b3206ec6c99592ef9ee829426cad62e4d29.tar.gz alacritty-e2e25b3206ec6c99592ef9ee829426cad62e4d29.zip |
Fix first unfullscreen on fullscreen mode launched window
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/event.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs index 171f3ce7..3c85cee7 100644 --- a/alacritty_terminal/src/event.rs +++ b/alacritty_terminal/src/event.rs @@ -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, } } |