aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-21 12:41:57 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-21 12:41:57 +1000
commitf129b1b89fe0726f00a54f4c4857a7a8c5fab220 (patch)
tree281c34175df99f106ddede83f4291d4e70567980 /sway/tree/layout.c
parentMerge pull request #2502 from minus7/workspace-names (diff)
downloadsway-f129b1b89fe0726f00a54f4c4857a7a8c5fab220.tar.gz
sway-f129b1b89fe0726f00a54f4c4857a7a8c5fab220.tar.zst
sway-f129b1b89fe0726f00a54f4c4857a7a8c5fab220.zip
Replace enum resize_edge with wlr_edges
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index ee7d7418..a3de44ce 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -876,13 +876,13 @@ struct sway_container *container_split(struct sway_container *child,
876} 876}
877 877
878void container_recursive_resize(struct sway_container *container, 878void container_recursive_resize(struct sway_container *container,
879 double amount, enum resize_edge edge) { 879 double amount, enum wlr_edges edge) {
880 bool layout_match = true; 880 bool layout_match = true;
881 wlr_log(WLR_DEBUG, "Resizing %p with amount: %f", container, amount); 881 wlr_log(WLR_DEBUG, "Resizing %p with amount: %f", container, amount);
882 if (edge == RESIZE_EDGE_LEFT || edge == RESIZE_EDGE_RIGHT) { 882 if (edge == WLR_EDGE_LEFT || edge == WLR_EDGE_RIGHT) {
883 container->width += amount; 883 container->width += amount;
884 layout_match = container->layout == L_HORIZ; 884 layout_match = container->layout == L_HORIZ;
885 } else if (edge == RESIZE_EDGE_TOP || edge == RESIZE_EDGE_BOTTOM) { 885 } else if (edge == WLR_EDGE_TOP || edge == WLR_EDGE_BOTTOM) {
886 container->height += amount; 886 container->height += amount;
887 layout_match = container->layout == L_VERT; 887 layout_match = container->layout == L_VERT;
888 } 888 }