Use new presentation-time helper

This has the advantage to (1) reduce boilerplate and (2) make us
correctly handle wlr_output_event_present.commit_seq.
This commit is contained in:
Simon Ser 2019-11-17 00:24:19 +01:00 committed by Drew DeVault
parent 5d882cb5fc
commit 1d3cbe9f27
2 changed files with 4 additions and 20 deletions

View file

@ -121,7 +121,8 @@ static void render_surface_iterator(struct sway_output *output, struct sway_view
render_texture(wlr_output, output_damage, texture, &box, matrix, alpha);
wlr_presentation_surface_sampled(server.presentation, surface);
wlr_presentation_surface_sampled_on_output(server.presentation, surface,
wlr_output);
}
static void render_layer(struct sway_output *output,