1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00

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(!)
This commit is contained in:
Wez Furlong 2022-03-22 06:41:22 -07:00
parent 5b09ff1dd0
commit 409ff74b84

View File

@ -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);