summaryrefslogtreecommitdiff
path: root/libwindow-settings
diff options
context:
space:
mode:
Diffstat (limited to 'libwindow-settings')
-rw-r--r--libwindow-settings/marco-window-manager.c24
-rw-r--r--libwindow-settings/mate-window-manager.h9
2 files changed, 31 insertions, 2 deletions
diff --git a/libwindow-settings/marco-window-manager.c b/libwindow-settings/marco-window-manager.c
index 6562291e..2492eb99 100644
--- a/libwindow-settings/marco-window-manager.c
+++ b/libwindow-settings/marco-window-manager.c
@@ -174,7 +174,17 @@ marco_change_settings (MateWindowManager *wm,
MarcoWindowManager *meta_wm;
meta_wm = MARCO_WINDOW_MANAGER (wm);
-
+
+ if (settings->flags & MATE_WM_SETTING_COMPOSITING_MANAGER)
+ g_settings_set_boolean (meta_wm->p->settings,
+ MARCO_COMPOSITING_MANAGER_KEY,
+ settings->compositing_manager);
+
+ if (settings->flags & MATE_WM_SETTING_COMPOSITING_ALTTAB)
+ g_settings_set_boolean (meta_wm->p->settings,
+ MARCO_COMPOSITING_FAST_ALT_TAB_KEY,
+ settings->compositing_fast_alt_tab);
+
if (settings->flags & MATE_WM_SETTING_MOUSE_FOCUS)
g_settings_set_enum (meta_wm->p->settings,
MARCO_FOCUS_KEY,
@@ -232,6 +242,18 @@ marco_get_settings (MateWindowManager *wm,
to_get = settings->flags;
settings->flags = 0;
+ if (to_get & MATE_WM_SETTING_COMPOSITING_MANAGER) {
+ settings->compositing_manager = g_settings_get_boolean (meta_wm->p->settings,
+ MARCO_COMPOSITING_MANAGER_KEY);
+ settings->flags |= MATE_WM_SETTING_COMPOSITING_MANAGER;
+ }
+
+ if (to_get & MATE_WM_SETTING_COMPOSITING_ALTTAB) {
+ settings->compositing_fast_alt_tab = g_settings_get_boolean (meta_wm->p->settings,
+ MARCO_COMPOSITING_FAST_ALT_TAB_KEY);
+ settings->flags |= MATE_WM_SETTING_COMPOSITING_ALTTAB;
+ }
+
if (to_get & MATE_WM_SETTING_MOUSE_FOCUS) {
gint marco_focus_value;
diff --git a/libwindow-settings/mate-window-manager.h b/libwindow-settings/mate-window-manager.h
index b9d9a18a..9bed52e4 100644
--- a/libwindow-settings/mate-window-manager.h
+++ b/libwindow-settings/mate-window-manager.h
@@ -47,6 +47,8 @@ typedef enum
MATE_WM_SETTING_MOUSE_MOVE_MODIFIER = 1 << 4,
MATE_WM_SETTING_THEME = 1 << 5,
MATE_WM_SETTING_DOUBLE_CLICK_ACTION = 1 << 6,
+ MATE_WM_SETTING_COMPOSITING_MANAGER = 1 << 7,
+ MATE_WM_SETTING_COMPOSITING_ALTTAB = 1 << 8,
MATE_WM_SETTING_MASK =
MATE_WM_SETTING_FONT |
MATE_WM_SETTING_MOUSE_FOCUS |
@@ -54,7 +56,9 @@ typedef enum
MATE_WM_SETTING_AUTORAISE_DELAY |
MATE_WM_SETTING_MOUSE_MOVE_MODIFIER |
MATE_WM_SETTING_THEME |
- MATE_WM_SETTING_DOUBLE_CLICK_ACTION
+ MATE_WM_SETTING_DOUBLE_CLICK_ACTION |
+ MATE_WM_SETTING_COMPOSITING_MANAGER |
+ MATE_WM_SETTING_COMPOSITING_ALTTAB
} MateWMSettingsFlags;
typedef struct
@@ -78,6 +82,9 @@ typedef struct
guint focus_follows_mouse : 1;
guint autoraise : 1;
+ gboolean compositing_manager;
+ gboolean compositing_fast_alt_tab;
+
} MateWMSettings;
#ifdef __cplusplus