diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-07 22:28:57 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-07 22:28:57 +0200 |
| commit | 344338acfc77d040c4bd2605f332b93bf356f0ff (patch) | |
| tree | 20a270ed04829763c56c854f7b3978cf4b640e5d /include/container.h | |
| parent | 150973ed298914ec136b63005284362f5f63d716 (diff) | |
Fix tabbed/stacked corner case #742
Tabbed/stacked containers are now created only if a view is present on
the workspace. If a view is created on previously empty tabbed/stacked
workspace, it gets wrapped in a container.
Diffstat (limited to 'include/container.h')
| -rw-r--r-- | include/container.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h index 50ca2bf5..6562a752 100644 --- a/include/container.h +++ b/include/container.h @@ -254,6 +254,11 @@ bool swayc_is_parent_of(swayc_t *parent, swayc_t *child); bool swayc_is_child_of(swayc_t *child, swayc_t *parent); /** + * Returns true if this container is an empty workspace. + */ +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. */ |
