From e072fbc6d98784e5610aa88251a15f64e30bbcae Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 6 Jun 2018 20:10:42 -0400 Subject: Switch output storing from list_t to wl_list --- sway/ipc-server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sway/ipc-server.c') diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 2a2346b4..241fe742 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -489,9 +489,8 @@ void ipc_client_handle_command(struct ipc_client *client) { ipc_json_describe_container(container)); } } - for (int i = 0; i < root_container.sway_root->outputs->length; ++i) { - struct sway_output *output = - root_container.sway_root->outputs->items[i]; + struct sway_output *output; + wl_list_for_each(output, &root_container.sway_root->outputs, link) { if (!output->swayc) { json_object_array_add(outputs, ipc_json_describe_disabled_output(output)); -- cgit v1.2.3-54-g00ecf