From 25f645325c8884a61d59f5bbc1666dfdd61f00c2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 11 Sep 2022 08:26:24 +0200 Subject: [PATCH] xsession: make QT HiDPI work with fractional settings Passthrough is the default rouding policy in Qt 6 but not Qt 5. --- dotfiles/xsession | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/xsession b/dotfiles/xsession index 8118f9b..3ba22bc 100755 --- a/dotfiles/xsession +++ b/dotfiles/xsession @@ -10,8 +10,10 @@ export GTK2_RC_FILES=$HOME/.gtkrc-2.0 # We do not want to rely on crappy mailcap export MAILCAPS=$HOME/.mailcap -# QT theme +# Qt HiDPI (https://doc.qt.io/qt-6/highdpi.html) export QT_AUTO_SCREEN_SCALE_FACTOR=1 +export QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough +# Qt theme export QT_QPA_PLATFORMTHEME=qt5ct # GTK3 apps try to contact org.a11y.Bus. Disable that.