summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
authorOmar Zeidan <[email protected]>2017-12-31 16:03:36 +0100
committerraveit65 <[email protected]>2018-01-02 09:24:38 +0100
commit709fe3eb2f8987ffc598ecbece4997acdf51cdca (patch)
tree8f3296e10c3ed60f91f3063c709b7ebcedc03696 /src/core/prefs.c
parent9e2b7eff713b6881a60538e08e222dad0d364647 (diff)
downloadmarco-709fe3eb2f8987ffc598ecbece4997acdf51cdca.tar.bz2
marco-709fe3eb2f8987ffc598ecbece4997acdf51cdca.tar.xz
Implemented a setting to disable top tiling
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 61c957ad..021ad874 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -120,7 +120,8 @@ static gboolean resize_with_right_button = FALSE;
static gboolean show_tab_border = FALSE;
static gboolean center_new_windows = FALSE;
static gboolean force_fullscreen = TRUE;
-static gboolean side_by_side_tiling = FALSE;
+static gboolean allow_tiling = FALSE;
+static gboolean allow_top_tiling = TRUE;
static GList *show_desktop_skip_list = NULL;
static MetaVisualBellType visual_bell_type = META_VISUAL_BELL_FULLSCREEN_FLASH;
@@ -422,10 +423,16 @@ static MetaBoolPreference preferences_bool[] =
&center_new_windows,
FALSE,
},
- { "side-by-side-tiling",
+ { "allow-tiling",
KEY_GENERAL_SCHEMA,
- META_PREF_SIDE_BY_SIDE_TILING,
- &side_by_side_tiling,
+ META_PREF_ALLOW_TILING,
+ &allow_tiling,
+ FALSE,
+ },
+ { "allow-top-tiling",
+ KEY_GENERAL_SCHEMA,
+ META_PREF_ALLOW_TOP_TILING,
+ &allow_top_tiling,
FALSE,
},
{ NULL, NULL, 0, NULL, FALSE },
@@ -1618,8 +1625,11 @@ meta_preference_to_string (MetaPreference pref)
case META_PREF_FORCE_FULLSCREEN:
return "FORCE_FULLSCREEN";
- case META_PREF_SIDE_BY_SIDE_TILING:
- return "SIDE_BY_SIDE_TILING";
+ case META_PREF_ALLOW_TILING:
+ return "ALLOW_TILING";
+
+ case META_PREF_ALLOW_TOP_TILING:
+ return "ALLOW_TOP_TILING";
case META_PREF_PLACEMENT_MODE:
return "PLACEMENT_MODE";
@@ -2288,9 +2298,15 @@ meta_prefs_get_center_new_windows (void)
}
gboolean
-meta_prefs_get_side_by_side_tiling ()
+meta_prefs_get_allow_tiling ()
+{
+ return allow_tiling;
+}
+
+gboolean
+meta_prefs_get_allow_top_tiling ()
{
- return side_by_side_tiling;
+ return allow_top_tiling;
}
guint