diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/wayland_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index cc214a6e8d..cab1245ff4 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2422,12 +2422,12 @@ void vo_wayland_handle_scale(struct vo_wayland_state *wl) bool vo_wayland_init(struct vo *vo) { - vo->wl = talloc_zero(NULL, struct vo_wayland_state); - struct vo_wayland_state *wl = vo->wl; - if (!getenv("WAYLAND_DISPLAY")) goto err; + vo->wl = talloc_zero(NULL, struct vo_wayland_state); + struct vo_wayland_state *wl = vo->wl; + *wl = (struct vo_wayland_state) { .display = wl_display_connect(NULL), .vo = vo, |