aboutsummaryrefslogtreecommitdiff
path: root/include/sway/container.h
diff options
context:
space:
mode:
authorD.B <thejan.2009@gmail.com>2016-10-10 20:44:09 +0200
committerDrew DeVault <sir@cmpwn.com>2016-12-04 08:31:34 -0500
commit6fb4b6737a793672129bb621d48652cc5e42059e (patch)
tree58ef0b90988625bc0601bfc8b73d6927036ea08c /include/sway/container.h
parent5778c59a2f302071fd781683db57a97b51396c87 (diff)
add workspace_layout to container
Add swayc_change_layout function, which changes either layout or workspace_layout, depending on the container type.
Diffstat (limited to 'include/sway/container.h')
-rw-r--r--include/sway/container.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h
index 5e251885..90825a49 100644
--- a/include/sway/container.h
+++ b/include/sway/container.h
@@ -68,6 +68,7 @@ struct sway_container {
enum swayc_types type;
enum swayc_layouts layout;
enum swayc_layouts prev_layout;
+ enum swayc_layouts workspace_layout;
/**
* Width and height of this container, without borders or gaps.
@@ -321,4 +322,10 @@ void update_visibility(swayc_t *container);
*/
void close_views(swayc_t *container);
+/**
+ * Assign layout to a container. Needed due to workspace container specifics.
+ * Workspace always needs L_HORIZ layout.
+ */
+swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout);
+
#endif