summaryrefslogtreecommitdiff
path: root/plugins/xsettings
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-13 14:03:14 +0100
committerinfirit <[email protected]>2014-12-13 18:32:16 +0100
commitc51b75b6f92347214e601501212fc7269f6085af (patch)
treead966dec7697ccb791c851f2cb5a3f93e4101902 /plugins/xsettings
parentb08893a4d4e65385ca11c4dae21b869f31048627 (diff)
downloadmate-settings-daemon-c51b75b6f92347214e601501212fc7269f6085af.tar.bz2
mate-settings-daemon-c51b75b6f92347214e601501212fc7269f6085af.tar.xz
xsettings: Export Xft.lcdfilter for OO.o's benefit
Export Xft.lcdfilter legacy setting for the benefit of OpenOffice.org which doesn't follow the other fontconfig settings. Taken from GSD commit: 6cf315249ab27d4396b0f5b5edb1e689a5cafc68 From: Chris Coleman <[email protected]> gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=631924
Diffstat (limited to 'plugins/xsettings')
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index 80c8682..4293d18 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -391,6 +391,8 @@ xft_settings_set_xsettings (MateXSettingsManager *manager,
xsettings_manager_set_string (manager->priv->managers [i], "Xft/HintStyle", settings->hintstyle);
xsettings_manager_set_int (manager->priv->managers [i], "Xft/DPI", settings->dpi);
xsettings_manager_set_string (manager->priv->managers [i], "Xft/RGBA", settings->rgba);
+ xsettings_manager_set_string (manager->priv->managers [i], "Xft/lcdfilter",
+ g_str_equal (settings->rgba, "rgb") ? "lcddefault" : "none");
}
mate_settings_profile_end (NULL);
}
@@ -452,6 +454,8 @@ xft_settings_set_xresources (MateXftSettings *settings)
settings->hintstyle);
update_property (add_string, "Xft.rgba",
settings->rgba);
+ update_property (add_string, "Xft.lcdfilter",
+ g_str_equal (settings->rgba, "rgb") ? "lcddefault" : "none");
g_debug("xft_settings_set_xresources: new res '%s'", add_string->str);