aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/event.rs
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 /alacritty/src/event.rs
parentc2c8d6bf371433a3158fda769829714c5b99f62a (diff)
downloadr-alacritty-a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb.tar.gz
r-alacritty-a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb.tar.bz2
r-alacritty-a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb.zip
Fix font size reset when moving between screens
Fixes #3183.
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r--alacritty/src/event.rs3
1 files changed, 2 insertions, 1 deletions
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));