aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-04-23 20:22:42 +0300
committerDrew DeVault <sir@cmpwn.com>2019-04-23 14:34:30 -0600
commit20690346c7a9f75cfb181cb613b8f006e6ce3e14 (patch)
tree57e73e611caf006c59948c1a8235394b198c2f16 /rootston
parent5e6766a165bd4bc71f1dc24c4348f7be0f020ddd (diff)
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.
Diffstat (limited to 'rootston')
-rw-r--r--rootston/render.c6
1 files changed, 3 insertions, 3 deletions
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;
}