Add support for nested tabbed/stacked containers

This commit is contained in:
Mikkel Oscar Lyderik 2016-04-20 00:22:15 +02:00
parent 3955c66ce8
commit 3e1f78ab26
8 changed files with 234 additions and 78 deletions

View file

@ -149,8 +149,9 @@ bool set_focused_container(swayc_t *c) {
}
// rearrange if parent container is tabbed/stacked
if (swayc_is_tabbed_stacked(p)) {
arrange_windows(p->parent, -1, -1);
swayc_t *parent = swayc_tabbed_stacked_parent(p);
if (parent != NULL) {
arrange_windows(parent, -1, -1);
}
} else if (p->type == C_WORKSPACE) {
// remove previous focus if view_focus is unlocked