mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -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
|
|
@ -262,6 +262,12 @@ bool swayc_is_empty_workspace(swayc_t *container);
|
|||
* Returns the top most tabbed or stacked parent container. Returns NULL if
|
||||
* view is not in a tabbed/stacked layout.
|
||||
*/
|
||||
swayc_t *swayc_tabbed_stacked_ancestor(swayc_t *view);
|
||||
|
||||
/**
|
||||
* Returns the immediate tabbed or stacked parent container. Returns NULL if
|
||||
* view is not directly in a tabbed/stacked layout.
|
||||
*/
|
||||
swayc_t *swayc_tabbed_stacked_parent(swayc_t *view);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue