Commit 9f355449 authored by Sebastian Kügler's avatar Sebastian Kügler

[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
parent c08d26b6
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment