87150816c7
This is a larger patch rewriting some parts of the config saving functionality in device.cpp in order to: 1. Make it possible to save ScrollMode as integer instead of using three booleans 2. Simplify the addition of new keys or types in the future Changes in detail: a) Adds new ConfigKey ScrollMethod and removed now unnecessary keys per method b) Adds constructors to the ConfigData struct. This allows to create ConfigData entries for s_configData without the need of stating empty brackets and the useage of default values. c) Use plain member function pointers instead of std::function, in order to compactify code and have better compile output in case something goes wrong. c) Cleans up ScrollMethod functions and adds interface methods for transforming the saved integer into type enum libinput_config_scroll_method. d) Adjusts auto test for loading the ScrollMethod value from the config file. Reviewers: #kwin, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3460 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
context_test.cpp | ||
device_test.cpp | ||
gesture_event_test.cpp | ||
input_event_test.cpp | ||
key_event_test.cpp | ||
mock_libinput.cpp | ||
mock_libinput.h | ||
mock_udev.cpp | ||
mock_udev.h | ||
pointer_event_test.cpp | ||
touch_event_test.cpp |