HiDPI rendering in flatpak sandbox looks blurry
Flatpaked GTK applications rendering on a high pixel density monitor (with a scale factor greater than 1) look 'blurry':
-
Files
from the host renders perfectly:
-
Builder
in a Flatpak sandbox renders poorly:
It seems like GTK renders at a lower scale factor and that the compositor then scales up the pixel buffer in order to match the monitor's configuration. GTK inspector seems to indicate such a problem: from the display section of the General
tab:
- For
Files
from the host, rendering OK:Geometry 748 x 409 @ 2 at 0,0
. - For
Builder
in the sandbox, rendering KO:Geometry 1456 x 819 at 0,0
.
My computer is a laptop with a HiDPI monitor configured with Resolution 2560 x 1440
and Scale 200%
.