mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
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:
parent
5d882cb5fc
commit
1d3cbe9f27
2 changed files with 4 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue