diff options
Diffstat (limited to 'sway/layout.h')
-rw-r--r-- | sway/layout.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sway/layout.h b/sway/layout.h index a6fb35a7..24d214d8 100644 --- a/sway/layout.h +++ b/sway/layout.h @@ -4,11 +4,23 @@ #include <wlc/wlc.h> #include "list.h" +typedef enum { + LAYOUT_TILE_HORIZ, + LAYOUT_TILE_VERT, + LAYOUT_TABBED, + LAYOUT_STACKED +} container_layout_t; + struct sway_container { - wlc_handle output; // May be NULL - list_t children; + wlc_handle output; + list_t *children; + container_layout_t layout; }; +extern list_t *outputs; + +void init_layout(); +void add_output(wlc_handle output); wlc_handle get_topmost(wlc_handle output, size_t offset); #endif |