aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-25 09:26:23 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commitaaba7642b3e4e9a63aea49412b10221f399b17af (patch)
tree7e7c2f6fcd80a6a48e07e07e03c5f2dc0d248240 /include/sway/tree/container.h
parentUse L_FLOATING instead of reapable boolean (diff)
downloadsway-aaba7642b3e4e9a63aea49412b10221f399b17af.tar.gz
sway-aaba7642b3e4e9a63aea49412b10221f399b17af.tar.zst
sway-aaba7642b3e4e9a63aea49412b10221f399b17af.zip
Replace is_floating boolean with function
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 906088f0..71935697 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -76,8 +76,6 @@ struct sway_container {
76 enum sway_container_layout layout; 76 enum sway_container_layout layout;
77 enum sway_container_layout prev_layout; 77 enum sway_container_layout prev_layout;
78 78
79 // Saves us from searching the list of children/floating in the parent
80 bool is_floating;
81 bool is_sticky; 79 bool is_sticky;
82 80
83 // For C_ROOT, this has no meaning 81 // For C_ROOT, this has no meaning
@@ -243,8 +241,14 @@ void container_set_floating(struct sway_container *container, bool enable);
243void container_set_geometry_from_view(struct sway_container *container); 241void container_set_geometry_from_view(struct sway_container *container);
244 242
245/** 243/**
246 * Determine if the given container is itself floating or has a floating 244 * Determine if the given container is itself floating.
247 * ancestor. 245 * This will return false for any descendants of a floating container.
246 */
247bool container_is_floating(struct sway_container *container);
248
249/**
250 * Determine if the given container is itself floating or is a child of a
251 * floating container.
248 */ 252 */
249bool container_self_or_parent_floating(struct sway_container *container); 253bool container_self_or_parent_floating(struct sway_container *container);
250 254