From b1b09e12c4713936cbfa3e2aeb01f13582d5c939 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Wed, 11 Mar 2026 06:16:05 +0100 Subject: [PATCH] x11: fix fractional scaling when fract is 0.75 Fractional scaling was broken when the fractional part was .75 as the round rounded up the WindowScalingFactor to the upper bound and applied extra scaling in addition to the one in UnscaledDPI (1.75 * 2 for 175% scaling instead of 1.75 * 1) --- src/xwayland.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwayland.rs b/src/xwayland.rs index e47879cf..e3b251e4 100644 --- a/src/xwayland.rs +++ b/src/xwayland.rs @@ -692,7 +692,7 @@ impl Common { ), ( "Gdk/WindowScalingFactor".into(), - (new_scale.round() as i32).into(), + (new_scale.floor() as i32).into(), ), ( "Gtk/CursorThemeSize".into(),