summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-10-02 17:55:38 -0400
committerLuke from DC <[email protected]>2025-10-07 04:57:29 +0000
commitfbdb376749031248ba7a943bf8a935b2cacc5a99 (patch)
tree146763794a314d98d4e4ae779ea89c771293f4e7 /plugins
parent6d0200e0eac08a5867f83dd741a4dec7a1fefa25 (diff)
downloadmate-settings-daemon-fbdb376749031248ba7a943bf8a935b2cacc5a99.tar.bz2
mate-settings-daemon-fbdb376749031248ba7a943bf8a935b2cacc5a99.tar.xz
xsettings: Remove HiDPI scale change workaround
Remove the workaround that restarted mate-panel and marco when the HiDPI scale changed. This is no longer necessary now that both components have native support for dynamic scale changes. The xsettings plugin now only manages the Gdk/WindowScalingFactor XSetting itself. GTK applications receive the scale change through the normal XSettings mechanism and update automatically via their style-updated signal handlers. This needs changes to mate-panel and marco to handle scale changes dynamically: - https://github.com/mate-desktop/mate-panel/pull/1521 - https://github.com/mate-desktop/marco/pull/814
Diffstat (limited to 'plugins')
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index ad9bf82..86ff376 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -554,44 +554,6 @@ scale_change_workarounds (MateXSettingsManager *manager, int new_scale, int unsc
g_clear_error (&error);
}
}
- } else {
- /* Restart marco */
- /* FIXME: The ideal scenario would be for marco 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. */
- wm_common_update_window();
- gchar *wm = wm_common_get_current_window_manager ();
- if (g_strcmp0 (wm, WM_COMMON_MARCO) == 0) {
- 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);
- }
- }
- g_free (wm);
-
- /* Restart mate-panel */
- /* 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. */
- 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);
- }
-
- /* Toggle icons on desktop to fix size */
- /* FIXME: The ideal scenario would be for caja 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. */
- GSettings *desktop_settings;
- desktop_settings = g_settings_new ("org.mate.background");
- if (g_settings_get_boolean (desktop_settings, "show-desktop-icons")) {
- /* Delay the toggle to allow enough time for the desktop to redraw */
- g_timeout_add_seconds (1, delayed_toggle_bg_draw, GBOOLEAN_TO_POINTER (FALSE));
- g_timeout_add_seconds (2, delayed_toggle_bg_draw, GBOOLEAN_TO_POINTER (TRUE));
- }
- g_object_unref (desktop_settings);
}
/* Store new scale value */