diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-28 19:06:42 +1000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-28 10:35:40 +0100 |
commit | 6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a (patch) | |
tree | 61a9e61c64fd1b88a79b06a6f9dafeb84e4f8c35 /include/sway/tree/container.h | |
parent | Add note about required scdoc version to README. (diff) | |
download | sway-6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a.tar.gz sway-6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a.tar.zst sway-6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a.zip |
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.h | 6 |
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); | |||
299 | enum sway_container_layout container_current_parent_layout( | 299 | enum sway_container_layout container_current_parent_layout( |
300 | struct sway_container *con); | 300 | struct sway_container *con); |
301 | 301 | ||
302 | list_t *container_get_siblings(const struct sway_container *container); | 302 | list_t *container_get_siblings(struct sway_container *container); |
303 | 303 | ||
304 | int container_sibling_index(const struct sway_container *child); | 304 | int container_sibling_index(struct sway_container *child); |
305 | 305 | ||
306 | list_t *container_get_current_siblings(struct sway_container *container); | 306 | list_t *container_get_current_siblings(struct sway_container *container); |
307 | 307 | ||
@@ -354,4 +354,6 @@ void container_update_marks_textures(struct sway_container *container); | |||
354 | 354 | ||
355 | void container_raise_floating(struct sway_container *con); | 355 | void container_raise_floating(struct sway_container *con); |
356 | 356 | ||
357 | bool container_is_scratchpad_hidden(struct sway_container *con); | ||
358 | |||
357 | #endif | 359 | #endif |