From 2c917a8c3453ec54a80581d82bc8a520e822bd56 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 22 Feb 2021 19:33:08 +0100 Subject: container: Add container_is_current_floating Needed to check if containers are currently floating from render code, as container_is_floating checks pending state. --- include/sway/tree/container.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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,9 +210,16 @@ 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. */ -- cgit v1.2.3