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

@ -553,9 +553,9 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
swayc_t *p = swayc_tabbed_stacked_ancestor(c);
if (p) {
// TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path
update_view_border(get_focused_view(p));
update_container_border(get_focused_view(p));
} else if (c->border_type == B_NORMAL) {
update_view_border(c);
update_container_border(c);
}
ipc_event_window(c, "title");
}