[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
icc-effect-5.14.5
Sebastian Kügler 2016-09-07 10:58:37 +02:00
parent c08d26b644
commit 9f35544940
1 changed files with 0 additions and 1 deletions

View File

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