From 982a89bc39268101ca56cfecd3238ead6c9244b0 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 12 Feb 2018 13:13:28 -0500 Subject: Scale OSD size correctly on HiDPI displays (#212) Also fix build warnings on xsettings --- plugins/xsettings/msd-xsettings-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/xsettings/msd-xsettings-manager.c') 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); -- cgit v1.2.1