on xenial help sign in
also print info when we cannot fetch full details
8168e6cMichael Zanetti
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+2−2
@@ -159,6 +159,8 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
159 }
159 }
160 eventPath = inputDevice->devicePath();
160 eventPath = inputDevice->devicePath();
161
161
162+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
163+
162 fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK);
164 fd = open(eventPath.toLatin1(), O_RDONLY|O_NONBLOCK);
163 if (fd == -1) {
165 if (fd == -1) {
164 return inputDevice;
166 return inputDevice;
@@ -193,8 +195,6 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
193 }
195 }
194 }
196 }
195
197
196− qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
197−
198 return inputDevice;
198 return inputDevice;
199}
199}
200
200