Refactor logic to determine if stacked/tabbed con

Add a new function `swayc_is_tabbed_or_stacked()` to determine whether or not
the given container has layout of stacked or tabbed. This is done commonly
enough that it should have its own method to help readability and code quality.

No logic changes.
This commit is contained in:
Tony Crisci 2016-08-01 22:57:33 -04:00
parent a4096b73c9
commit 02638c1f44
7 changed files with 22 additions and 10 deletions

View file

@ -141,6 +141,11 @@ enum visibility_mask {
VISIBLE = true
} visible;
/**
* Whether this con is tabbed or stacked
*/
bool swayc_is_tabbed_or_stacked(swayc_t *container);
/**
* Allocates a new output container.
*/