summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar D.B <thejan.2009@gmail.com>2016-07-07 22:28:57 +0200
committerLibravatar D.B <thejan.2009@gmail.com>2016-07-07 22:28:57 +0200
commitee67cd0ba1e950f5e21328580cc46b618be5fc01 (patch)
tree20a270ed04829763c56c854f7b3978cf4b640e5d /include
parentMerge pull request #739 from deklov/swaybar-pointer-01 (diff)
downloadsway-ee67cd0ba1e950f5e21328580cc46b618be5fc01.tar.gz
sway-ee67cd0ba1e950f5e21328580cc46b618be5fc01.tar.zst
sway-ee67cd0ba1e950f5e21328580cc46b618be5fc01.zip
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')
-rw-r--r--include/container.h5
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);
254bool swayc_is_child_of(swayc_t *child, swayc_t *parent); 254bool swayc_is_child_of(swayc_t *child, swayc_t *parent);
255 255
256/** 256/**
257 * Returns true if this container is an empty workspace.
258 */
259bool swayc_is_empty_workspace(swayc_t *container);
260
261/**
257 * Returns the top most tabbed or stacked parent container. Returns NULL if 262 * Returns the top most tabbed or stacked parent container. Returns NULL if
258 * view is not in a tabbed/stacked layout. 263 * view is not in a tabbed/stacked layout.
259 */ 264 */