diff options
author | Tony Crisci <[email protected]> | 2016-07-31 20:32:40 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2016-07-31 20:32:40 -0400 |
commit | b39249508f458e302d843c440db8f992e1d545ca (patch) | |
tree | aff103964eb013f246674346fcb6685d593e98bd /sway/layout.c | |
parent | f78d07d39bb4e401920efb1396cb85d9cadd8adf (diff) |
Refactor functions to update container borders
Replace `update_view_border()` with `update_container_border()`. The latter
should handle both the case where the container is a view or if the container
has children.
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/layout.c b/sway/layout.c index 6502d930..42954ebc 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -441,7 +441,7 @@ static void update_border_geometry_floating(swayc_t *c, struct wlc_geometry *geo c->border_geometry = g; *geometry = c->actual_geometry; - update_view_border(c); + update_container_border(c); } void update_layout_geometry(swayc_t *parent, enum swayc_layouts prev_layout) { @@ -688,7 +688,7 @@ void update_geometry(swayc_t *container) { container->actual_geometry = geometry; if (container->type == C_VIEW) { - update_view_border(container); + update_container_border(container); } } @@ -867,7 +867,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { // update focused view border last because it may // depend on the title bar geometry of its siblings. if (focused && container->children->length > 1) { - update_view_border(focused); + update_container_border(focused); } } break; @@ -911,7 +911,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) { // update focused view border last because it may // depend on the title bar geometry of its siblings. if (focused && container->children->length > 1) { - update_view_border(focused); + update_container_border(focused); } } break; |