aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-10-11 08:24:38 -0400
committerGitHub <noreply@github.com>2016-10-11 08:24:38 -0400
commitce713efcd23b82a7d85c1976ddfbd46f08133ff6 (patch)
treec7e0986aa282c00bcc12cde70820ffbca07cb6b5 /include
parent9ad6fc592dd6bd5bf29e60b03186bba32f5c9fa3 (diff)
parent166c2a3687d2819184457490132dd0c109238873 (diff)
Merge pull request #945 from thejan2009/workspace_layout
Fixes dealing with workspace_layout and related bugs [rfc]
Diffstat (limited to 'include')
-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