diff options
| author | Jibin George <hello@jibingeo.com> | 2023-11-25 20:09:21 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 14:39:21 +0000 |
| commit | 2ce4b94a22242ae77f6a2899d389dcb56d0e5fa8 (patch) | |
| tree | a19bd997f36b63cae6851192f4dbd478ab793b60 /src/managers/input/InputManager.cpp | |
| parent | de95e956a0dc9d837cde8eb714a7fd3fa5e47673 (diff) | |
input: Fix custom acceleration profile config (#3948)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 058429c9..be5d296e 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1074,7 +1074,7 @@ void CInputManager::setPointerConfigs() { const auto CONFIG = libinput_config_accel_create(LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM); libinput_config_accel_set_points(CONFIG, LIBINPUT_ACCEL_TYPE_MOTION, step, points.size(), points.data()); - libinput_device_config_accel_set_profile(LIBINPUTDEV, LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM); + libinput_device_config_accel_apply(LIBINPUTDEV, CONFIG); libinput_config_accel_destroy(CONFIG); } catch (std::exception& e) { Debug::log(ERR, "Invalid values in custom accel profile"); } } else { |
