summaryrefslogtreecommitdiff
path: root/capplets/appearance/appearance-style.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2024-06-07 00:58:31 -0400
committerLuke from DC <[email protected]>2024-06-27 18:41:52 +0000
commit25546fdd3e6a7d67e1ed1e834a88a35765af38b4 (patch)
treec4a27c655ca990c161f4887e83fec204f3556681 /capplets/appearance/appearance-style.c
parent4ce1a21d546c99c6af04c3384d2b199680b91d2f (diff)
downloadmate-control-center-master.tar.bz2
mate-control-center-master.tar.xz
Appearance under wayland: apply cursor size changesHEADmaster
*Note that only compositors that read the cursor size from gsettings will apply this, wayfire does not at this time *This is also true of cursor theme: the compositor must read it from gsettings for it to be applied from the control center
Diffstat (limited to 'capplets/appearance/appearance-style.c')
-rw-r--r--capplets/appearance/appearance-style.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c
index 3cb250f9..3e23fe9f 100644
--- a/capplets/appearance/appearance-style.c
+++ b/capplets/appearance/appearance-style.c
@@ -482,6 +482,27 @@ static void
cursor_size_changed_cb (int size, AppearanceData *data)
{
g_settings_set_int (data->mouse_settings, CURSOR_SIZE_KEY, size);
+
+ /*If running under wayland and the GNOME interface schema is installed
+ *set the cursor size under the GNOME gsettings too
+ */
+ if (!(GDK_IS_X11_DISPLAY (gdk_display_get_default())))
+ {
+ GSettingsSchemaSource *source = g_settings_schema_source_get_default ();
+
+ if (source)
+ {
+ GSettingsSchema *schema = g_settings_schema_source_lookup (source, INTERFACE_GNOME_SCHEMA, TRUE);
+ {
+ if (schema)
+ {
+ GSettings *interface_gnome_settings = NULL;
+ interface_gnome_settings = g_settings_new_full (schema, NULL, NULL);
+ g_settings_set_int (interface_gnome_settings, CURSOR_SIZE_KEY, size);
+ }
+ }
+ }
+ }
}
static void