From 1152aea66a4bf254973712da03489f781c3e15de Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 24 Nov 2023 17:14:06 +0400 Subject: Damage entire window on font size change Font size could change without changing the cell dimensions, like becoming slightly higher/wider. Fixes: 40160c5d (Damage only terminal inside `alacritty_terminal`) --- alacritty/src/display/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'alacritty/src/display/mod.rs') diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs index 28c91cdb..ef25f735 100644 --- a/alacritty/src/display/mod.rs +++ b/alacritty/src/display/mod.rs @@ -617,6 +617,10 @@ impl Display { cell_height = cell_dimensions.1; info!("Cell size: {} x {}", cell_width, cell_height); + + // Mark entire terminal as damaged since glyph size could change without cell size + // changes. + self.damage_tracker.frame().mark_fully_damaged(); } let (mut width, mut height) = (self.size_info.width(), self.size_info.height()); -- cgit