aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/server.c b/sway/server.c
index 9648f258..7c17fdf1 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -204,8 +204,8 @@ static void handle_renderer_lost(struct wl_listener *listener, void *data) {
wlr_compositor_set_renderer(server->compositor, renderer);
- for (int i = 0; i < root->outputs->length; ++i) {
- struct sway_output *output = root->outputs->items[i];
+ struct sway_output *output;
+ wl_list_for_each(output, &root->all_outputs, link) {
wlr_output_init_render(output->wlr_output,
server->allocator, server->renderer);
}