From 508df2216a2425ca7d4de2a58b8bb7884e8c605c Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Thu, 29 Feb 2024 18:31:16 -0500 Subject: [PATCH] minor renaming and changed return val to 0 --- sway/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sway/server.c b/sway/server.c index 25b93a49..b95c4c68 100644 --- a/sway/server.c +++ b/sway/server.c @@ -84,7 +84,7 @@ static int animation_timer(void *data) { int num_containers; memcpy(&num_containers, &server->animated_containers->length, sizeof(int)); int num_animations_complete = 0; - int completed_animation_indexes[100]; // TODO: this can be better + int completed_animation_indices[100]; // TODO: this can be better bool should_commit_transaction = false; // update state @@ -98,7 +98,7 @@ static int animation_timer(void *data) { MIN(con->alpha + alpha_step, con->target_alpha); if (con->alpha == con->target_alpha) { - completed_animation_indexes[num_animations_complete] = i; + completed_animation_indices[num_animations_complete] = i; num_animations_complete++; if (con->alpha == 0) { view_remove_container(con); @@ -121,11 +121,11 @@ static int animation_timer(void *data) { // clean up list for (int i = 0; i < num_animations_complete; i++) { - int container_index = completed_animation_indexes[i]; + int container_index = completed_animation_indices[i]; list_del(server->animated_containers, container_index); } - return 1; + return 0; } #define SWAY_XDG_SHELL_VERSION 2