From 75c82fce19df6039e6f6d3260f30876e0ff5f0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 17 Nov 2015 09:47:46 +0100 Subject: [PATCH] [backends/wayland] Only set socket name if it got sepcified If we don't have a dedicated device identifier we should use the default mechanismn which involves using the WAYLAND_DISPLAY or WAYLAND_SOCKET env variable. --- backends/wayland/wayland_backend.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backends/wayland/wayland_backend.cpp b/backends/wayland/wayland_backend.cpp index 9b1f784818..47ed149f07 100644 --- a/backends/wayland/wayland_backend.cpp +++ b/backends/wayland/wayland_backend.cpp @@ -329,7 +329,9 @@ void WaylandBackend::init() } ); connect(m_registry, &Registry::interfacesAnnounced, this, &WaylandBackend::createSurface); - m_connectionThreadObject->setSocketName(deviceIdentifier()); + if (!deviceIdentifier().isEmpty()) { + m_connectionThreadObject->setSocketName(deviceIdentifier()); + } initConnection(); }