[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.
icc-effect-5.14.5
Martin Gräßlin 2016-06-29 19:13:00 +02:00
parent 83dca5b524
commit 1d24264e45
1 changed files with 1 additions and 0 deletions

View File

@ -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();