[libinput] Track all created Devices in Device
ClosedPublic

Authored by graesslin on May 24 2016, 8:00 AM.

Details

Summary

Device has a static QVector<Device*> into which each created Device
is added and provides a static method to match a libinput_device* to
the already created Device.

This can be used by the the libinput Event class wrapper to properly
reference the Device the event is for.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 3954.May 24 2016, 8:00 AM
graesslin retitled this revision from to [libinput] Track all created Devices in Device.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptMay 24 2016, 8:00 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bshah accepted this revision.May 24 2016, 8:22 AM
bshah added a reviewer: bshah.
This revision is now accepted and ready to land.May 24 2016, 8:22 AM
This revision was automatically updated to reflect the committed changes.