Stop using wlr_scene_buffer_send_frame_done()

That function now takes the output as input. We don't always have
the output at hand, so use the function operating on a
wlr_scene_surface instead.
This commit is contained in:
Simon Ser 2025-06-05 13:15:38 +02:00 committed by Kenny Levinsen
parent 25ea1a0af2
commit eb8acfd7b1
2 changed files with 18 additions and 7 deletions

View file

@ -1242,7 +1242,11 @@ bool view_can_tear(struct sway_view *view) {
static void send_frame_done_iterator(struct wlr_scene_buffer *scene_buffer,
int x, int y, void *data) {
struct timespec *when = data;
wl_signal_emit_mutable(&scene_buffer->events.frame_done, when);
struct wlr_scene_surface *scene_surface = wlr_scene_surface_try_from_buffer(scene_buffer);
if (scene_surface == NULL) {
return;
}
wlr_scene_surface_send_frame_done(scene_surface, when);
}
void view_send_frame_done(struct sway_view *view) {