diff options
author | Stefano Karapetsas <[email protected]> | 2013-02-10 00:10:10 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-02-10 00:10:10 +0100 |
commit | 9e4dc4de27023c3b7780d51f2b16401b6bc7dacb (patch) | |
tree | bae96b9d024a33d197ccb5d2397a267af59fff8b /libwindow-settings/marco-window-manager.c | |
parent | 1fb9a904c698ea47886b576d9a15ffba2c100e7d (diff) | |
download | mate-control-center-9e4dc4de27023c3b7780d51f2b16401b6bc7dacb.tar.bz2 mate-control-center-9e4dc4de27023c3b7780d51f2b16401b6bc7dacb.tar.xz |
windows: Add option to enable compositing manager and fast alt-tab
Diffstat (limited to 'libwindow-settings/marco-window-manager.c')
-rw-r--r-- | libwindow-settings/marco-window-manager.c | 24 |
1 files changed, 23 insertions, 1 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; |