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/border.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/border.c')
-rw-r--r-- | sway/border.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/border.c b/sway/border.c index c3e1004a..f681e4f1 100644 --- a/sway/border.c +++ b/sway/border.c @@ -201,12 +201,6 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b, } } -void map_update_view_border(swayc_t *view, void *data) { - if (view->type == C_VIEW) { - update_view_border(view); - } -} - /** * Generate nested container title for tabbed/stacked layouts */ @@ -293,7 +287,7 @@ void update_tabbed_stacked_titlebars(swayc_t *c, cairo_t *cr, struct wlc_geometr } } -void update_view_border(swayc_t *view) { +static void update_view_border(swayc_t *view) { if (!view->visible) { return; } @@ -417,6 +411,12 @@ void update_container_border(swayc_t *container) { } } +void map_update_view_border(swayc_t *view, void *data) { + if (view->type == C_VIEW) { + update_view_border(view); + } +} + void render_view_borders(wlc_handle view) { swayc_t *c = swayc_by_handle(view); |