alacritty

fork of https://github.com/jwilm/alacritty, experimental
git clone git://git.thc420.xyz/alacritty
Log | Files | Refs | README

commit e2e25b3206ec6c99592ef9ee829426cad62e4d29
parent 5ad1e8b75fb484c9ca4a94914026a5a15bab5a8c
Author: Christian Duerr <chrisduerr@users.noreply.github.com>
Date:   Tue, 25 Jun 2019 21:32:28 +0000

Fix first unfullscreen on fullscreen mode launched window


Diffstat:
MCHANGELOG.md | 1+
Malacritty_terminal/src/event.rs | 7+++++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -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 diff --git 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, } }