From 35b8d185ac58eaaeb12a95d6947cdcb78a2ee487 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Thu, 17 Nov 2016 06:49:12 +0100 Subject: fix layout switching (was broken because of workspace_layout) 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. --- include/sway/container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); /** * Assign layout to a container. Needed due to workspace container specifics. - * Workspace always needs L_HORIZ layout. + * Workspace should always have either L_VERT or L_HORIZ layout. */ swayc_t *swayc_change_layout(swayc_t *container, enum swayc_layouts layout); -- cgit v1.2.3