aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-03 16:35:06 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-09 10:08:43 +1000
commit59c94887018bdfa578c4371c4275061ca6e71b3e (patch)
tree62bdaa6ac4777d1fcb292013bddd2043dad7765a /sway/tree/layout.c
parentMerge pull request #2115 from RedSoxFan/restore-workspaces (diff)
downloadsway-59c94887018bdfa578c4371c4275061ca6e71b3e.tar.gz
sway-59c94887018bdfa578c4371c4275061ca6e71b3e.tar.zst
sway-59c94887018bdfa578c4371c4275061ca6e71b3e.zip
WIP: Atomic layout updates ground work
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 6d4cd088..3bba049a 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -915,10 +915,10 @@ void container_recursive_resize(struct sway_container *container,
915 bool layout_match = true; 915 bool layout_match = true;
916 wlr_log(L_DEBUG, "Resizing %p with amount: %f", container, amount); 916 wlr_log(L_DEBUG, "Resizing %p with amount: %f", container, amount);
917 if (edge == RESIZE_EDGE_LEFT || edge == RESIZE_EDGE_RIGHT) { 917 if (edge == RESIZE_EDGE_LEFT || edge == RESIZE_EDGE_RIGHT) {
918 container->width += amount; 918 container->pending.swayc_width += amount;
919 layout_match = container->layout == L_HORIZ; 919 layout_match = container->layout == L_HORIZ;
920 } else if (edge == RESIZE_EDGE_TOP || edge == RESIZE_EDGE_BOTTOM) { 920 } else if (edge == RESIZE_EDGE_TOP || edge == RESIZE_EDGE_BOTTOM) {
921 container->height += amount; 921 container->pending.swayc_height += amount;
922 layout_match = container->layout == L_VERT; 922 layout_match = container->layout == L_VERT;
923 } 923 }
924 if (container->children) { 924 if (container->children) {