From bec068ef5ddc73f23ffd6298122bf818fd4d2084 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Oct 2014 21:59:58 +0200 Subject: Rework tiling code based off Consortium Taken from https://github.com/SolusOS-discontinued/consortium/commit/b463e03f5bdeab307ceee6b969c681f29537c76d --- src/core/display-private.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/display-private.h') diff --git a/src/core/display-private.h b/src/core/display-private.h index d8842a3e..dc270a96 100644 --- a/src/core/display-private.h +++ b/src/core/display-private.h @@ -67,6 +67,13 @@ typedef void (*MetaWindowPingFunc) (MetaDisplay* display, Window xwindow, guint3 */ #define N_IGNORED_SERIALS 4 +typedef enum { + META_TILE_NONE, + META_TILE_LEFT, + META_TILE_RIGHT, + META_TILE_MAXIMIZED /* only used for previews */ +} MetaTileMode; + struct _MetaDisplay { char* name; Display* xdisplay; @@ -155,6 +162,8 @@ struct _MetaDisplay { int grab_anchor_root_x; int grab_anchor_root_y; MetaRectangle grab_anchor_window_pos; + MetaTileMode grab_tile_mode; + int grab_tile_monitor_number; int grab_latest_motion_x; int grab_latest_motion_y; gulong grab_mask; -- cgit v1.2.1