summaryrefslogtreecommitdiff
path: root/src/core/window-private.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-10-28 12:12:43 -0400
committerraveit65 <[email protected]>2019-10-31 09:51:11 +0100
commitae80350494d7e0756ab51191092db4347defa030 (patch)
tree27e5ac349738590d490bd2ab2781a27e3d6ad950 /src/core/window-private.h
parent3523b6b7c0aaa47cc00b176769d248f77ca8751c (diff)
downloadmarco-ae80350494d7e0756ab51191092db4347defa030.tar.bz2
marco-ae80350494d7e0756ab51191092db4347defa030.tar.xz
window: Add optional tile size cycling
Adding a new option to allow tile size cycling. When enabled, using the keyboard shortcut for tiling multiple times in a row cycles the window through different sizes (1/2 -> 1/3 -> 1/4 -> 3/4 -> 2/3 -> Untiled).
Diffstat (limited to 'src/core/window-private.h')
-rw-r--r--src/core/window-private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h
index ada9f8bb..008979e5 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -83,6 +83,15 @@ typedef enum {
META_QUEUE_UPDATE_ICON = 1 << 2,
} MetaQueueType;
+typedef enum {
+ META_TILE_CYCLE_NONE,
+ META_TILE_CYCLE_50,
+ META_TILE_CYCLE_33,
+ META_TILE_CYCLE_25,
+ META_TILE_CYCLE_75,
+ META_TILE_CYCLE_66
+} MetaTileCycle;
+
#define NUMBER_OF_QUEUES 3
struct _MetaWindow
@@ -150,6 +159,7 @@ struct _MetaWindow
guint tile_mode : 3;
guint tile_resized : 1;
guint tiled : 1;
+ guint tile_cycle : 3;
/* The last "full" maximized/unmaximized state. We need to keep track of
* that to toggle between normal/tiled or maximized/tiled states. */