[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:
parent
c08d26b644
commit
9f35544940
1 changed files with 0 additions and 1 deletions
|
@ -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++;
|
||||||
|
|
Loading…
Reference in a new issue