diff options
author | Simon Ser <contact@emersion.fr> | 2019-11-17 00:24:19 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-11-21 11:19:00 -0500 |
commit | 1d3cbe9f278297fffa83e4e0c99d8ba46903cc3e (patch) | |
tree | 7d34bc02a4b205d4ffba77760064b6d9e70894a7 /sway/desktop/render.c | |
parent | Add support for wlr_keyboard_group (diff) | |
download | sway-1d3cbe9f278297fffa83e4e0c99d8ba46903cc3e.tar.gz sway-1d3cbe9f278297fffa83e4e0c99d8ba46903cc3e.tar.zst sway-1d3cbe9f278297fffa83e4e0c99d8ba46903cc3e.zip |
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.
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index c432b476..960fe083 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -121,7 +121,8 @@ static void render_surface_iterator(struct sway_output *output, struct sway_view | |||
121 | 121 | ||
122 | render_texture(wlr_output, output_damage, texture, &box, matrix, alpha); | 122 | render_texture(wlr_output, output_damage, texture, &box, matrix, alpha); |
123 | 123 | ||
124 | wlr_presentation_surface_sampled(server.presentation, surface); | 124 | wlr_presentation_surface_sampled_on_output(server.presentation, surface, |
125 | wlr_output); | ||
125 | } | 126 | } |
126 | 127 | ||
127 | static void render_layer(struct sway_output *output, | 128 | static void render_layer(struct sway_output *output, |