aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-01-28 19:06:42 +1000
committerLibravatar emersion <contact@emersion.fr>2019-01-28 10:35:40 +0100
commit6b8bf10941ec83ac7a6e364b9c34f8c6f74d814a (patch)
tree61a9e61c64fd1b88a79b06a6f9dafeb84e4f8c35 /sway/ipc-json.c
parentAdd note about required scdoc version to README. (diff)
downloadsway-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 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 87d2c1ec..e1098942 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -282,7 +282,7 @@ static json_object *ipc_json_describe_scratchpad_output(void) {
282 json_object *floating_array = json_object_new_array(); 282 json_object *floating_array = json_object_new_array();
283 for (int i = 0; i < root->scratchpad->length; ++i) { 283 for (int i = 0; i < root->scratchpad->length; ++i) {
284 struct sway_container *container = root->scratchpad->items[i]; 284 struct sway_container *container = root->scratchpad->items[i];
285 if (!container->workspace) { 285 if (container_is_scratchpad_hidden(container)) {
286 json_object_array_add(floating_array, 286 json_object_array_add(floating_array,
287 ipc_json_describe_node_recursive(&container->node)); 287 ipc_json_describe_node_recursive(&container->node));
288 } 288 }