From ee67cd0ba1e950f5e21328580cc46b618be5fc01 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Thu, 7 Jul 2016 22:28:57 +0200 Subject: 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. --- include/container.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/container.h b/include/container.h index 50ca2bf5..6562a752 100644 --- a/include/container.h +++ b/include/container.h @@ -253,6 +253,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. -- cgit v1.2.3-54-g00ecf