From ad7605675ef5d1fc99653e80c3c846429abfda25 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Sat, 16 Jul 2016 15:11:08 +0200 Subject: refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed --- sway/handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/handlers.c') diff --git a/sway/handlers.c b/sway/handlers.c index a7a87564..1b96be0a 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -523,8 +523,9 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) { if (!c->name || strcmp(c->name, new_name) != 0) { free(c->name); c->name = strdup(new_name); - swayc_t *p = swayc_tabbed_stacked_parent(c); + 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)); } else if (c->border_type == B_NORMAL) { update_view_border(c); -- cgit v1.2.3