https://bugs.kde.org/show_bug.cgi?id=442901

--- Comment #12 from hkz85825...@gmail.com ---
It's peculiar why GTK4 doesn't use GDK_DPI_SCALE anymore while not providing an
apparent alternative. Do they want to impose `Xft.dpi: 96` on any displays, and
rely on GDK_SCALE alone to scale the app? If that's what they want, it can be
done with Plasma:

1. Go to System Settings >> Appearance >> Fonts, disable "Force font DPI", this
unsets Xft.dpi. This setting is enabled automatically whenever "Global scale"
is changed in System Settings >> Display and Monitor >> Display Configuration.
2. Create `~/.config/plasma-workspace/env/90-unset-gdk-dpi-scale.sh` with the
content `export GDK_DPI_SCALE=-1`, this overrides the environment variable
`GDK_DPI_SCAL=0.5` set by startplasma-x11.cpp when global scale is 2.

Doing these will make applications see GDK_SCALE=2, GDK_DPI_SCALE=-1 and an
Xft.dpi of nothing, making both GTK3 and 4 happily produce 2x scaled windows.
But it would also surely break other apps who uses Xft.dpi to scale their UIs,
e.g. Wine, GLFW, making them unscaled. It also feels incredibly wrong to
override 2 default behaviours of Plasma.

It feels like that setting GDK_SCALE=2, GDK_DPI_SCALE=0.5 and `Xft.dpi: 192`
used to be the best way of configuring a 2x scaled display, but GTK4 just comes
and decides to break that. Now we have a dillema of either having large GTK4
apps, or small Xft.dpi-scaled apps.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to