summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/event.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4c844ee3..345dfe34 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Semantic selection stopping at full-width glyphs
- Full-width glyphs cut off in last column
- Crash when starting on some X11 systems
+- Font size resetting when Alacritty is moved between screens
## 0.4.1
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs
index 74ba88bb..87f4d627 100644
--- a/alacritty/src/event.rs
+++ b/alacritty/src/event.rs
@@ -463,7 +463,8 @@ impl<N: Notify + OnResize> Processor<N> {
let display_update_pending = &mut processor.ctx.display_update_pending;
// Push current font to update its DPR
- display_update_pending.font = Some(processor.ctx.config.font.clone());
+ display_update_pending.font =
+ Some(processor.ctx.config.font.clone().with_size(*processor.ctx.font_size));
// Resize to event's dimensions, since no resize event is emitted on Wayland
display_update_pending.dimensions = Some(PhysicalSize::new(width, height));