[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.
This commit is contained in:
Martin Gräßlin 2016-06-29 19:13:00 +02:00
parent 83dca5b524
commit 1d24264e45

View file

@ -44,6 +44,7 @@ WaylandClipboard::WaylandClipboard(QObject *parent)
, m_thread(new QThread) , m_thread(new QThread)
, m_connectionThread(new ConnectionThread) , m_connectionThread(new ConnectionThread)
{ {
m_connectionThread->setSocketFd(qgetenv("WAYLAND_SOCKET").toInt());
m_connectionThread->moveToThread(m_thread); m_connectionThread->moveToThread(m_thread);
m_thread->start(); m_thread->start();