struct wl_list *part_list = NULL;
struct wlr_scene_tree *grandparent =
node->parent ? node->parent->node.parent : NULL;
+ struct wlr_scene_tree *greatgrandparent =
+ grandparent ? grandparent->node.parent : NULL;
/* active titlebar */
if (node->parent == view->ssd.titlebar.active.tree) {
part_list = &view->ssd.titlebar.active.parts;
} else if (grandparent == view->ssd.titlebar.active.tree) {
part_list = &view->ssd.titlebar.active.parts;
+ } else if (greatgrandparent == view->ssd.titlebar.active.tree) {
+ part_list = &view->ssd.titlebar.active.parts;
/* extents */
} else if (node->parent == view->ssd.extents.tree) {
part_list = &view->ssd.titlebar.inactive.parts;
} else if (grandparent == view->ssd.titlebar.inactive.tree) {
part_list = &view->ssd.titlebar.inactive.parts;
+ } else if (greatgrandparent == view->ssd.titlebar.inactive.tree) {
+ part_list = &view->ssd.titlebar.inactive.parts;
/* inactive border */
} else if (node->parent == view->ssd.border.inactive.tree) {