From 1d24264e456257b054ebcb5f2488374a2f546bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 29 Jun 2016 19:13:00 +0200 Subject: [PATCH] [helpers/xclipboradsync] Ensure that KWayland::Client connects through the passed fd One needs to call ConnectionThread::setSocketFd in order to not have it connect through the normal socket. As WAYLAND_SOCKET is set the implementation would call the correct functionality anyway. This change only ensures that no wrong debug message gets logged. --- helpers/xclipboardsync/waylandclipboard.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/xclipboardsync/waylandclipboard.cpp b/helpers/xclipboardsync/waylandclipboard.cpp index fec5643b2c..7702089087 100644 --- a/helpers/xclipboardsync/waylandclipboard.cpp +++ b/helpers/xclipboardsync/waylandclipboard.cpp @@ -44,6 +44,7 @@ WaylandClipboard::WaylandClipboard(QObject *parent) , m_thread(new QThread) , m_connectionThread(new ConnectionThread) { + m_connectionThread->setSocketFd(qgetenv("WAYLAND_SOCKET").toInt()); m_connectionThread->moveToThread(m_thread); m_thread->start();