mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
This commit is contained in:
parent
7aeedf0264
commit
ad7605675e
7 changed files with 24 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue