[libinput] Don't set the parent on the Device

This causes an assert with debug build of Qt due to threading issues.
We don't need the setParent call as we use deleteLater when a device
gets removed.

Reviewed-by: Martin Gräßlin
This commit is contained in:
Sebastian Kügler 2016-09-07 10:58:37 +02:00
parent c08d26b644
commit 9f35544940

View file

@ -220,7 +220,6 @@ void Connection::processEvents()
case LIBINPUT_EVENT_DEVICE_ADDED: { case LIBINPUT_EVENT_DEVICE_ADDED: {
auto device = new Device(event->nativeDevice()); auto device = new Device(event->nativeDevice());
device->moveToThread(s_thread); device->moveToThread(s_thread);
device->setParent(this);
m_devices << device; m_devices << device;
if (device->isKeyboard()) { if (device->isKeyboard()) {
m_keyboard++; m_keyboard++;