graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY Device gets a KConfigGroup injected and supports loading device-specific settings. This is invoked from Libinput::Connection when adding a new Device. Whenever a Device option is changed successfully through the DBus interface it gets synced into the KConfigGroup, thus on next loading of the Device it gets restored. The config group follows a pattern of: [libinput][vendor][product] Thus every device has a specific and persistent configuration. TEST PLAN So far only tested through autotests REPOSITORY rKWIN KWin BRANCH libinput-device-load-config REVISION DETAIL https://phabricator.kde.org/D3264 AFFECTED FILES autotests/libinput/CMakeLists.txt autotests/libinput/device_test.cpp libinput/connection.cpp libinput/device.cpp libinput/device.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas