Fix text-scaling-factor under wayland.
The text-scaling-factor GSetting was not being properly propagated to clutter and the Pango font map; under X this is done by Clutter, which listens to XSETTINGS directly. https://bugzilla.gnome.org/show_bug.cgi?id=756447
This commit is contained in:
parent
4d066e3916
commit
2f82f783f2
@ -867,7 +867,12 @@ update_scale_factor (GtkSettings *settings,
|
|||||||
{
|
{
|
||||||
g_object_set (context, "scale-factor", g_value_get_int (&value), NULL);
|
g_object_set (context, "scale-factor", g_value_get_int (&value), NULL);
|
||||||
if (meta_is_wayland_compositor ())
|
if (meta_is_wayland_compositor ())
|
||||||
g_object_set (clutter_settings_get_default (), "font-dpi", 96 * 1024 * g_value_get_int (&value), NULL);
|
{
|
||||||
|
int xft_dpi;
|
||||||
|
g_object_get (settings, "gtk-xft-dpi", &xft_dpi, NULL);
|
||||||
|
|
||||||
|
g_object_set (clutter_settings_get_default (), "font-dpi", xft_dpi, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure clutter and gdk scaling stays disabled */
|
/* Make sure clutter and gdk scaling stays disabled */
|
||||||
|
Loading…
Reference in New Issue
Block a user