From 409ff74b8432c21f93c99c3acf028aa8b9c39c28 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 22 Mar 2022 06:41:22 -0700 Subject: [PATCH] gui: speculative improvement for resize/scaling issue I think this may help with #1745 and #1566 but I'm not on a mac at the moment(!) --- wezterm-gui/src/termwindow/resize.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wezterm-gui/src/termwindow/resize.rs b/wezterm-gui/src/termwindow/resize.rs index 58e40b403..b0b734d8e 100644 --- a/wezterm-gui/src/termwindow/resize.rs +++ b/wezterm-gui/src/termwindow/resize.rs @@ -40,7 +40,9 @@ impl super::TermWindow { return; } self.window_state = window_state; - if live_resizing { + // For simple, user-interactive resizes where the dpi doesn't change, + // skip our scaling recalculation + if live_resizing && self.dimensions.dpi == dimensions.dpi { self.apply_dimensions(&dimensions, None, window); } else { self.scaling_changed(dimensions, self.fonts.get_font_scale(), window);