mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
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:
parent
a4096b73c9
commit
02638c1f44
7 changed files with 22 additions and 10 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue