From 2a9c593e012bedb11c5dd63b9c0216b475baf18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n?= Date: Fri, 15 Dec 2023 13:12:50 +0100 Subject: [PATCH] Fix typo in `get_xft_dpi` --- CHANGELOG.md | 1 + src/platform_impl/linux/x11/util/randr.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46469b85..8856d6ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Unreleased` header. - On X11, fix a bug where focusing the window would panic. - On macOS, fix `refresh_rate_millihertz`. - On Wayland, disable Client Side Decorations when `wl_subcompositor` is not supported. +- On X11, fix `Xft.dpi` detection from Xresources. # 0.29.4 diff --git a/src/platform_impl/linux/x11/util/randr.rs b/src/platform_impl/linux/x11/util/randr.rs index 564d5dd5..7e94055a 100644 --- a/src/platform_impl/linux/x11/util/randr.rs +++ b/src/platform_impl/linux/x11/util/randr.rs @@ -38,7 +38,7 @@ impl XConnection { // Retrieve DPI from Xft.dpi property pub fn get_xft_dpi(&self) -> Option { self.database() - .get_string("Xfi.dpi", "") + .get_string("Xft.dpi", "") .and_then(|s| f64::from_str(s).ok()) } pub fn get_output_info(