refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed

This commit is contained in:
D.B 2016-07-16 15:11:08 +02:00
parent 7aeedf0264
commit ad7605675e
7 changed files with 24 additions and 7 deletions

View file

@ -152,7 +152,7 @@ bool set_focused_container(swayc_t *c) {
}
// rearrange if parent container is tabbed/stacked
swayc_t *parent = swayc_tabbed_stacked_parent(p);
swayc_t *parent = swayc_tabbed_stacked_ancestor(p);
if (parent != NULL) {
arrange_windows(parent, -1, -1);
}