output: fix software cursors damage tracking

This commit is contained in:
emersion 2018-01-19 14:08:47 +01:00
parent b296481007
commit e29a0df8c1
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
10 changed files with 74 additions and 33 deletions

View file

@ -374,7 +374,7 @@ static void render_output(struct roots_output *output) {
renderer_end:
glDisable(GL_SCISSOR_TEST);
wlr_renderer_end(server->renderer);
wlr_output_swap_buffers(wlr_output);
wlr_output_swap_buffers(wlr_output, &now, &damage);
output->frame_scheduled = true;
pixman_region32_copy(&output->previous_damage, &output->damage);
pixman_region32_clear(&output->damage);