aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-08-01 16:03:37 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-08-06 14:17:58 +0100
commit356063b6c084a7c2d4e3e654fe48ec79a102294b (patch)
tree7e780aa0fb2feb1156e96ce61744122fad32c4d4 /sway/tree/layout.c
parentcommands: better type for con_id string length (diff)
downloadsway-356063b6c084a7c2d4e3e654fe48ec79a102294b.tar.gz
sway-356063b6c084a7c2d4e3e654fe48ec79a102294b.tar.zst
sway-356063b6c084a7c2d4e3e654fe48ec79a102294b.zip
commands: fix layout implementation (also better name for previous split layout)
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 07de9664..28cdc71e 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -859,7 +859,7 @@ struct sway_container *container_split(struct sway_container *child,
859 } 859 }
860 if (child->type == C_WORKSPACE && child->children->length == 0) { 860 if (child->type == C_WORKSPACE && child->children->length == 0) {
861 // Special case: this just behaves like splitt 861 // Special case: this just behaves like splitt
862 child->prev_layout = child->layout; 862 child->prev_split_layout = child->layout;
863 child->layout = layout; 863 child->layout = layout;
864 return child; 864 return child;
865 } 865 }
@@ -870,7 +870,7 @@ struct sway_container *container_split(struct sway_container *child,
870 870
871 remove_gaps(child); 871 remove_gaps(child);
872 872
873 cont->prev_layout = L_NONE; 873 cont->prev_split_layout = L_NONE;
874 cont->width = child->width; 874 cont->width = child->width;
875 cont->height = child->height; 875 cont->height = child->height;
876 cont->x = child->x; 876 cont->x = child->x;