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.
This commit is contained in:
Tony Crisci 2016-07-31 20:32:40 -04:00
parent f78d07d39b
commit b39249508f
5 changed files with 14 additions and 15 deletions

View file

@ -2340,7 +2340,7 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) {
// update container title if tabbed/stacked
if (swayc_tabbed_stacked_ancestor(focused)) {
update_view_border(focused);
update_container_border(focused);
swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT);
// schedule render to make changes take effect right away,
// otherwise we would have to wait for the view to render,