[libinput] Fix threaded Connection DBus object registering

On registering object use the object in the right thread.
Otherwise there are multiple errors.

BUG: 374554

Differential Revision: https://phabricator.kde.org/D4027
This commit is contained in:
Roman Gilg 2017-01-09 09:07:05 +01:00
parent e322a025f0
commit b868df2715

View file

@ -166,7 +166,7 @@ Connection::Connection(Context *input, QObject *parent)
QDBusConnection::sessionBus().registerObject(QStringLiteral("/org/kde/KWin/InputDevice"),
QStringLiteral("org.kde.KWin.InputDeviceManager"),
this,
s_self,
QDBusConnection::ExportAllProperties | QDBusConnection::ExportScriptableSignals
);
}