summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2020-08-15 00:12:47 +0200
committerVictor Kareh <[email protected]>2020-08-18 07:27:24 -0400
commitaaa8cf0b7b32536398846b8cf28250e0150f55b2 (patch)
tree9127b2fc77d72505a88aa4c6c368267b20146467
parent37e4d38ca3a61eb843d80732a26f29668352433d (diff)
downloadmarco-aaa8cf0b7b32536398846b8cf28250e0150f55b2.tar.bz2
marco-aaa8cf0b7b32536398846b8cf28250e0150f55b2.tar.xz
window: expand tile size cycling support
-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;