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

@ -318,7 +318,7 @@ void update_view_border(swayc_t *view) {
// for tabbed/stacked layouts the focused view has to draw all the
// titlebars of the hidden views.
swayc_t *p = NULL;
if (view->parent->focused == view && (p = swayc_tabbed_stacked_parent(view))) {
if (view->parent->focused == view && (p = swayc_tabbed_stacked_ancestor(view))) {
struct wlc_geometry g = {
.origin = {
.x = p->x,