aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-02-22 19:33:08 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-02-22 19:33:08 +0100
commit49b7147a4241a851fd4fe39219d81e6995b2b2be (patch)
treec589766a5462e0e6855ba2b135c0c050804fb830 /include
parent43977eb92c4c5f1db0c4d9abe418535053cf039a (diff)
container: Add container_is_current_floating
Needed to check if containers are currently floating from render code, as container_is_floating checks pending state.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index ff3f9599..5c368df2 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -210,10 +210,17 @@ void container_set_geometry_from_content(struct sway_container *con);
/**
* Determine if the given container is itself floating.
* This will return false for any descendants of a floating container.
+ *
+ * Uses pending container state.
*/
bool container_is_floating(struct sway_container *container);
/**
+ * Same as above, but for current container state.
+ */
+bool container_is_current_floating(struct sway_container *container);
+
+/**
* Get a container's box in layout coordinates.
*/
void container_get_box(struct sway_container *container, struct wlr_box *box);