summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 03aff90955..c77a608d69 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -632,6 +632,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) {