mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:25:59 +01:00
input: Fix custom acceleration profile config (#3948)
This commit is contained in:
parent
de95e956a0
commit
2ce4b94a22
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ void CInputManager::setPointerConfigs() {
|
||||||
|
|
||||||
const auto CONFIG = libinput_config_accel_create(LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM);
|
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_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);
|
libinput_config_accel_destroy(CONFIG);
|
||||||
} catch (std::exception& e) { Debug::log(ERR, "Invalid values in custom accel profile"); }
|
} catch (std::exception& e) { Debug::log(ERR, "Invalid values in custom accel profile"); }
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue