aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2019-01-28 19:06:42 +1000
committeremersion <contact@emersion.fr>2019-01-28 10:35:40 +0100
commit6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a (patch)
tree61a9e61c64fd1b88a79b06a6f9dafeb84e4f8c35 /include/sway/tree/container.h
parent68a28e482fd4a813721e45ea860b80ada0e226b4 (diff)
Introduce container_is_scratchpad_hidden
Just a convenience function that improves readability of the code. Other things worth noting: * container_get_siblings and container_sibling_index no longer use the const keyword * container_handle_fullscreen_reparent is only ever called after attaching the container to a workspace, so its con->workspace check has been changed to an assertion
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 543bd2cc..f7a4ac37 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -299,9 +299,9 @@ enum sway_container_layout container_parent_layout(struct sway_container *con);
enum sway_container_layout container_current_parent_layout(
struct sway_container *con);
-list_t *container_get_siblings(const struct sway_container *container);
+list_t *container_get_siblings(struct sway_container *container);
-int container_sibling_index(const struct sway_container *child);
+int container_sibling_index(struct sway_container *child);
list_t *container_get_current_siblings(struct sway_container *container);
@@ -354,4 +354,6 @@ void container_update_marks_textures(struct sway_container *container);
void container_raise_floating(struct sway_container *con);
+bool container_is_scratchpad_hidden(struct sway_container *con);
+
#endif