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:
parent
5b09ff1dd0
commit
409ff74b84
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user