diff options
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r-- | video/out/vo_x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index 67fac3c9a7..6b7a797412 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -315,6 +315,9 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) struct priv *p = vo->priv; wait_for_completion(vo, 1); + bool render = vo_x11_check_visible(vo); + if (!render) + return; struct mp_image *img = &p->mp_ximages[p->current_buf]; |