summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 00c136bdb2..67ec2cb4c1 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -736,6 +736,9 @@ static void shedule_resize(struct vo_wayland_state *wl,
static bool create_display (struct vo_wayland_state *wl)
{
+ if (wl->vo->probing && !getenv("XDG_RUNTIME_DIR"))
+ return false;
+
wl->display.display = wl_display_connect(NULL);
if (!wl->display.display) {