summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar D.B <thejan.2009@gmail.com>2016-11-17 06:49:12 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-12-04 08:31:34 -0500
commit35b8d185ac58eaaeb12a95d6947cdcb78a2ee487 (patch)
treefdfeef48c18a9a484b7491d38a6ee0be12801f7c /include
parentwrap some views under workspaces (diff)
downloadsway-35b8d185ac58eaaeb12a95d6947cdcb78a2ee487.tar.gz
sway-35b8d185ac58eaaeb12a95d6947cdcb78a2ee487.tar.zst
sway-35b8d185ac58eaaeb12a95d6947cdcb78a2ee487.zip
fix layout switching (was broken because of workspace_layout)0.11-rc1
For workspace containers, swayc_change_layout also changes ->layout alongside ->workspace_layout when it's a sensible thing to do. There is an additional test for 'layout toggle' command which ensures that containers will be tiled horizontally after toggling from tabbed or stacked.
Diffstat (limited to 'include')
-rw-r--r--include/sway/container.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/container.h b/include/sway/container.h
index 90825a49..2bedd136 100644
--- a/include/sway/container.h
+++ b/include/sway/container.h
@@ -324,7 +324,7 @@ void close_views(swayc_t *container);
324 324
325/** 325/**
326 * Assign layout to a container. Needed due to workspace container specifics. 326 * Assign layout to a container. Needed due to workspace container specifics.
327 * Workspace always needs L_HORIZ layout. 327 * Workspace should always have either L_VERT or L_HORIZ layout.
328 */ 328 */
329swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout); 329swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout);
330 330