diff options
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r-- | video/out/vo_wayland.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index 2997b38cde..7761223111 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -314,7 +314,6 @@ static bool resize(struct priv *p) p->x = x; p->y = y; - p->wl->window.events = 0; p->vo->want_redraw = true; return true; } @@ -373,8 +372,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) p->original_image = mpi; } - if (!vo_wayland_wait_frame(vo)) - MP_DBG(p->wl, "discarding frame callback\n"); + vo_wayland_wait_events(vo, 0); shm_buffer_t *buf = buffer_pool_get_back(&p->video_bufpool); @@ -513,8 +511,7 @@ static void flip_page(struct vo *vo) if (!p->wl->frame.callback) vo_wayland_request_frame(vo, p, redraw); - if (!vo_wayland_wait_frame(vo)) - MP_DBG(p->wl, "discarding frame callback\n"); + vo_wayland_wait_events(vo, 0); } static int query_format(struct vo *vo, int format) @@ -675,6 +672,8 @@ const struct vo_driver video_out_wayland = { .control = control, .draw_image = draw_image, .flip_page = flip_page, + .wakeup = vo_wayland_wakeup, + .wait_events = vo_wayland_wait_events, .uninit = uninit, .options = (const struct m_option[]) { OPT_FLAG("alpha", enable_alpha, 0), |