summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/keybindings.c5
-rw-r--r--src/core/window-private.h1
-rw-r--r--src/core/window.c3
3 files changed, 8 insertions, 1 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 1ee36b5e..faf1a530 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3163,7 +3163,7 @@ handle_toggle_tiled (MetaDisplay *display,
}
else
{
- /* Cycle through the different tile sizes: 1/2 -> 1/3 -> 1/4 -> 3/4 -> 2/3 -> Untiled */
+ /* Cycle through the different tile sizes: 1/2 -> 1/3 -> 1/4 -> 1/1 -> 3/4 -> 2/3 -> Untiled */
switch (window->tile_cycle)
{
case META_TILE_CYCLE_NONE:
@@ -3176,6 +3176,9 @@ handle_toggle_tiled (MetaDisplay *display,
next_cycle = META_TILE_CYCLE_25;
break;
case META_TILE_CYCLE_25:
+ next_cycle = META_TILE_CYCLE_100;
+ break;
+ case META_TILE_CYCLE_100:
next_cycle = META_TILE_CYCLE_75;
break;
case META_TILE_CYCLE_75:
diff --git a/src/core/window-private.h b/src/core/window-private.h
index e641e42a..6b57c4b2 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -88,6 +88,7 @@ typedef enum {
META_TILE_CYCLE_50,
META_TILE_CYCLE_33,
META_TILE_CYCLE_25,
+ META_TILE_CYCLE_100,
META_TILE_CYCLE_75,
META_TILE_CYCLE_66
} MetaTileCycle;
diff --git a/src/core/window.c b/src/core/window.c
index 55594fe3..781a9c36 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8136,6 +8136,9 @@ meta_window_get_current_tile_area (MetaWindow *window,
case META_TILE_CYCLE_25:
tile_ratio = 1 / 4.0;
break;
+ case META_TILE_CYCLE_100:
+ tile_ratio = 1 / 1.0;
+ break;
case META_TILE_CYCLE_75:
tile_ratio = 3 / 4.0;
break;