From 20690346c7a9f75cfb181cb613b8f006e6ce3e14 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 23 Apr 2019 20:22:42 +0300 Subject: output: rename needs_commit to needs_frame This new name makes more sense, since it is a request from the backend to get a new frame. In the future a commit may not convey a new frame. --- rootston/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rootston') diff --git a/rootston/render.c b/rootston/render.c index 203e3ace..66996d96 100644 --- a/rootston/render.c +++ b/rootston/render.c @@ -220,10 +220,10 @@ void output_render(struct roots_output *output) { clear_color[0] = clear_color[1] = clear_color[2] = 0; } - bool needs_swap; + bool needs_frame; pixman_region32_t damage; pixman_region32_init(&damage); - if (!wlr_output_damage_attach_render(output->damage, &needs_swap, &damage)) { + if (!wlr_output_damage_attach_render(output->damage, &needs_frame, &damage)) { return; } @@ -232,7 +232,7 @@ void output_render(struct roots_output *output) { .alpha = 1.0, }; - if (!needs_swap) { + if (!needs_frame) { // Output doesn't need swap and isn't damaged, skip rendering completely goto damage_finish; } -- cgit v1.2.3