diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-06 20:10:42 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-06 20:11:24 -0400 |
commit | e072fbc6d98784e5610aa88251a15f64e30bbcae (patch) | |
tree | 7de104885aabb49f17739d7631ef6cd4f628e64a /sway/commands | |
parent | Address emersions comments on output re-enabling (diff) | |
download | sway-e072fbc6d98784e5610aa88251a15f64e30bbcae.tar.gz sway-e072fbc6d98784e5610aa88251a15f64e30bbcae.tar.zst sway-e072fbc6d98784e5610aa88251a15f64e30bbcae.zip |
Switch output storing from list_t to wl_list
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index 6c789cc9..f955bf90 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -82,9 +82,8 @@ struct cmd_results *cmd_output(int argc, char **argv) { | |||
82 | // will be applied during normal "new output" event from wlroots. | 82 | // will be applied during normal "new output" event from wlroots. |
83 | char identifier[128]; | 83 | char identifier[128]; |
84 | bool all = strcmp(output->name, "*") == 0; | 84 | bool all = strcmp(output->name, "*") == 0; |
85 | list_t *sway_outputs = root_container.sway_root->outputs; | 85 | struct sway_output *sway_output; |
86 | for (int i = 0; i < sway_outputs->length; ++i) { | 86 | wl_list_for_each(sway_output, &root_container.sway_root->outputs, link) { |
87 | struct sway_output *sway_output = sway_outputs->items[i]; | ||
88 | output_get_identifier(identifier, sizeof(identifier), sway_output); | 87 | output_get_identifier(identifier, sizeof(identifier), sway_output); |
89 | wlr_log(L_DEBUG, "Checking identifier %s", identifier); | 88 | wlr_log(L_DEBUG, "Checking identifier %s", identifier); |
90 | if (all || strcmp(sway_output->wlr_output->name, output->name) == 0 | 89 | if (all || strcmp(sway_output->wlr_output->name, output->name) == 0 |