mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Switch output storing from list_t to wl_list
This commit is contained in:
parent
a0bbe67076
commit
e072fbc6d9
6 changed files with 12 additions and 19 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue