diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/main.c | 2 | ||||
-rw-r--r-- | src/core/prefs.c | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/core/main.c b/src/core/main.c index 39405127..66a5cdfb 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -574,7 +574,7 @@ main (int argc, char **argv) g_free (meta_args.client_id); if (meta_args.composite || meta_args.no_composite) - meta_prefs_set_compositing_manager (meta_args.composite); + meta_prefs_set_force_compositing_manager (meta_args.composite); if (meta_args.no_force_fullscreen) meta_prefs_set_force_fullscreen (FALSE); diff --git a/src/core/prefs.c b/src/core/prefs.c index cd40a2ce..8847614e 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -112,6 +112,8 @@ static gboolean mate_accessibility = FALSE; static gboolean mate_animations = TRUE; static char *cursor_theme = NULL; static int cursor_size = 24; +static gboolean use_force_compositor_manager = FALSE; +static gboolean force_compositor_manager = FALSE; static gboolean compositing_manager = FALSE; static gboolean compositing_fast_alt_tab = FALSE; static gboolean resize_with_right_button = FALSE; @@ -378,7 +380,7 @@ static MetaBoolPreference preferences_bool[] = &mate_animations, TRUE, }, - { "compositing-manager", + { KEY_GENERAL_COMPOSITOR, KEY_GENERAL_SCHEMA, META_PREF_COMPOSITING_MANAGER, &compositing_manager, @@ -2193,6 +2195,8 @@ meta_prefs_get_window_binding (const char *name, gboolean meta_prefs_get_compositing_manager (void) { + if (use_force_compositor_manager) + return force_compositor_manager; return compositing_manager; } @@ -2233,12 +2237,10 @@ meta_prefs_get_force_fullscreen (void) } void -meta_prefs_set_compositing_manager (gboolean whether) +meta_prefs_set_force_compositing_manager (gboolean whether) { - g_settings_set_boolean (settings_general, - KEY_GENERAL_COMPOSITOR, - whether); - + use_force_compositor_manager = TRUE; + force_compositor_manager = whether; } void |