mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
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:
parent
25ea1a0af2
commit
eb8acfd7b1
2 changed files with 18 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue