summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wlshm.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r--video/out/vo_wlshm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c
index 4744e505f3..76abb9c6a0 100644
--- a/video/out/vo_wlshm.c
+++ b/video/out/vo_wlshm.c
@@ -218,9 +218,8 @@ static void draw_image(struct vo *vo, struct mp_image *src)
struct priv *p = vo->priv;
struct vo_wayland_state *wl = vo->wl;
struct buffer *buf;
- bool render = !wl->hidden || wl->opts->disable_vsync;
- wl->frame_wait = true;
+ bool render = vo_wayland_check_visible(vo);
if (!render)
return;