summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-01-11 05:19:40 +0100
committerGitHub <noreply@github.com>2020-01-11 05:19:40 +0100
commita82df6ac4309f16bd1c75d13f1f4f1b9f79582eb (patch)
treecc27248c75c6328feabc47b8ea4b44ff0378bd1d
parentc2c8d6bf371433a3158fda769829714c5b99f62a (diff)
downloadalacritty-a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb.tar.gz
alacritty-a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb.zip
Fix font size reset when moving between screens
Fixes #3183.
-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));