diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-08-20 22:56:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 22:56:43 -0400 |
commit | 395ff7a541bccceba1e1f0fc834236b8f1f55d81 (patch) | |
tree | 281c34175df99f106ddede83f4291d4e70567980 /sway/tree/layout.c | |
parent | 389610795b9ceff18f563b73e007b1b54d58bbb2 (diff) | |
parent | f129b1b89fe0726f00a54f4c4857a7a8c5fab220 (diff) |
Merge pull request #2503 from RyanDwyer/use-wlr-edges
Replace enum resize_edge with wlr_edges
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 6 |
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, } void container_recursive_resize(struct sway_container *container, - double amount, enum resize_edge edge) { + double amount, enum wlr_edges edge) { bool layout_match = true; wlr_log(WLR_DEBUG, "Resizing %p with amount: %f", container, amount); - if (edge == RESIZE_EDGE_LEFT || edge == RESIZE_EDGE_RIGHT) { + if (edge == WLR_EDGE_LEFT || edge == WLR_EDGE_RIGHT) { container->width += amount; layout_match = container->layout == L_HORIZ; - } else if (edge == RESIZE_EDGE_TOP || edge == RESIZE_EDGE_BOTTOM) { + } else if (edge == WLR_EDGE_TOP || edge == WLR_EDGE_BOTTOM) { container->height += amount; layout_match = container->layout == L_VERT; } |