summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
authorsparkida <[email protected]>2022-01-15 23:14:19 +0000
committerLuke from DC <[email protected]>2023-01-18 04:15:33 +0000
commitd83cb24a27b1864be035868354a806287dbfaa92 (patch)
tree1e8987cd34887cdde1d31ad59f1dabcf7d57dc85 /src/core/prefs.c
parentdcd5d21e4c53f1670b33cec78c96bdd3da87037d (diff)
downloadmarco-d83cb24a27b1864be035868354a806287dbfaa92.tar.bz2
marco-d83cb24a27b1864be035868354a806287dbfaa92.tar.xz
Add setting to raise windows on alt+tab popup
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 1198113a..032bba8f 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -56,6 +56,7 @@
#define KEY_GENERAL_CENTER_NEW_WINDOWS "center-new-windows"
#define KEY_GENERAL_ICON_SIZE "icon-size"
#define KEY_GENERAL_ALT_TAB_MAX_COLUMNS "alt-tab-max-columns"
+#define KEY_GENERAL_ALT_TAB_RAISE_WINDOWS "alt-tab-raise-windows"
#define KEY_GENERAL_ALT_TAB_EXPAND_TO_FIT_TITLE "alt-tab-expand-to-fit-title"
#define KEY_COMMAND_SCHEMA "org.mate.Marco.keybinding-commands"
@@ -121,6 +122,7 @@ static char *cursor_theme = NULL;
static int cursor_size = 24;
static int icon_size = META_DEFAULT_ICON_SIZE;
static int alt_tab_max_columns = META_DEFAULT_ALT_TAB_MAX_COLUMNS;
+static gboolean alt_tab_raise_windows = META_DEFAULT_ALT_TAB_RAISE_WINDOWS;
static gboolean alt_tab_expand_to_fit_title = META_DEFAULT_ALT_TAB_EXPAND_TO_FIT_TITLE;
static gboolean use_force_compositor_manager = FALSE;
static gboolean force_compositor_manager = FALSE;
@@ -458,6 +460,12 @@ static MetaBoolPreference preferences_bool[] =
&alt_tab_expand_to_fit_title,
META_DEFAULT_ALT_TAB_EXPAND_TO_FIT_TITLE,
},
+ { "alt-tab-raise-windows",
+ KEY_GENERAL_SCHEMA,
+ META_PREF_ALT_TAB_RAISE_WINDOWS,
+ &alt_tab_raise_windows,
+ META_DEFAULT_ALT_TAB_RAISE_WINDOWS,
+ },
{ NULL, NULL, 0, NULL, FALSE },
};
@@ -1162,6 +1170,12 @@ meta_prefs_get_alt_tab_expand_to_fit_title (void)
}
gboolean
+meta_prefs_get_alt_tab_raise_windows (void)
+{
+ return alt_tab_raise_windows;
+}
+
+gboolean
meta_prefs_is_in_skip_list (char *class)
{
GList *item;
@@ -1682,6 +1696,9 @@ meta_preference_to_string (MetaPreference pref)
case META_PREF_ALT_TAB_EXPAND_TO_FIT_TITLE:
return "ALT_TAB_EXPAND_TO_FIT_TITLE";
+ case META_PREF_ALT_TAB_RAISE_WINDOWS:
+ return "ALT_TAB_RAISE_WINDOWS";
+
case META_PREF_COMPOSITING_MANAGER:
return "COMPOSITING_MANAGER";