aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 8557210f..10d621b4 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1609,3 +1609,11 @@ bool container_is_scratchpad_hidden_or_child(struct sway_container *con) {
1609 con = container_toplevel_ancestor(con); 1609 con = container_toplevel_ancestor(con);
1610 return con->scratchpad && !con->workspace; 1610 return con->scratchpad && !con->workspace;
1611} 1611}
1612
1613bool container_is_sticky(struct sway_container *con) {
1614 return con->is_sticky && container_is_floating(con);
1615}
1616
1617bool container_is_sticky_or_child(struct sway_container *con) {
1618 return container_is_sticky(container_toplevel_ancestor(con));
1619}