From 6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 28 Jan 2019 19:06:42 +1000 Subject: 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 --- include/sway/tree/container.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/sway/tree') 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 -- cgit v1.2.3-54-g00ecf