summaryrefslogtreecommitdiff
path: root/plugins/xsettings/msd-xsettings-manager.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-02-12 13:13:28 -0500
committerGitHub <[email protected]>2018-02-12 13:13:28 -0500
commit705b5d1f887e3e280faa60368bb8e999a88715b6 (patch)
treed1ae0ad012fd58c5644bdcebb4ef2787b7cba35b /plugins/xsettings/msd-xsettings-manager.c
parenta7700a97fba68eadf3e0675944cf1ec980eac52a (diff)
downloadmate-settings-daemon-705b5d1f887e3e280faa60368bb8e999a88715b6.tar.bz2
mate-settings-daemon-705b5d1f887e3e280faa60368bb8e999a88715b6.tar.xz
Scale OSD size correctly on HiDPI displays (#212)
Also fix build warnings on xsettings
Diffstat (limited to 'plugins/xsettings/msd-xsettings-manager.c')
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index 6d9061b..e1005ef 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -542,7 +542,7 @@ scale_change_workarounds (MateXSettingsManager *manager, int new_scale)
wm_common_update_window();
gchar *wm = wm_common_get_current_window_manager ();
if (g_strcmp0 (wm, WM_COMMON_MARCO) == 0) {
- const gchar * const marco[] = {"marco", "--replace", NULL};
+ gchar *marco[3] = {"marco", "--replace", NULL};
if (!g_spawn_async (NULL, marco, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error)) {
g_warning ("There was a problem restarting marco: %s", error->message);
g_clear_error (&error);
@@ -554,7 +554,7 @@ scale_change_workarounds (MateXSettingsManager *manager, int new_scale)
/* FIXME: The ideal scenario would be for mate-panel to respect window scaling and thus
* resize itself. Currently this is not happening, so msd restarts it when the window
* scaling factor changes so that it's visually correct. */
- const gchar * const mate_panel[] = {"killall", "mate-panel", NULL};
+ gchar *mate_panel[3] = {"killall", "mate-panel", NULL};
if (!g_spawn_async (NULL, mate_panel, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error)) {
g_warning ("There was a problem restarting mate-panel: %s", error->message);
g_clear_error (&error);