aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-28 19:06:42 +1000
committerFurkan Sahin <furkan-dev@proton.me>2019-01-28 19:06:42 +1000
commitacfeb00621b0fb70acc2a99712ec65e587f434e5 (patch)
tree61a9e61c64fd1b88a79b06a6f9dafeb84e4f8c35 /include
parent8660c54e264c77db64d7018491af48389f0def0c (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')
-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