diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index b8f359cca1..ce0b83c0e4 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -105,7 +105,7 @@ static int spawn_cursor(struct vo_wayland_state *wl) static int set_cursor_visibility(struct vo_wayland_state *wl, bool on) { - if (!wl->pointer) + if (!wl->pointer || !wl->pointer_id) return VO_NOTAVAIL; wl->cursor_visible = on; if (on) {