summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-07-06 17:03:50 +0400
committerinfirit <[email protected]>2014-10-27 12:38:56 +0100
commitaaa378feaff4331c8c78afb390f99d867ddf9b88 (patch)
tree6002a5431ccbaaf87720f079f82745acad36d5ea /src/core/prefs.c
parentbec068ef5ddc73f23ffd6298122bf818fd4d2084 (diff)
downloadmarco-aaa378feaff4331c8c78afb390f99d867ddf9b88.tar.bz2
marco-aaa378feaff4331c8c78afb390f99d867ddf9b88.tar.xz
don't change use settings by command line argument
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c14
1 files changed, 8 insertions, 6 deletions
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