diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-21 23:26:18 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-21 23:26:18 +0000 |
| commit | eb86e7967f7d218a7c9412e484473fd578dbf64c (patch) | |
| tree | 037745127a714d15aa0e3703002afea9475c396b /src/managers/input/InputManager.cpp | |
| parent | 88874fcfe2f9e57171eb0641b5336ad09116ef55 (diff) | |
add scroll_button libinput opt
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 24bab360..17a67020 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -779,7 +779,11 @@ void CInputManager::setPointerConfigs() { libinput_device_config_accel_set_profile(LIBINPUTDEV, LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT); } else { Debug::log(WARN, "Unknown acceleration profile, falling back to default"); - } + } + + const auto SCROLLBUTTON = HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "scroll_button") : g_pConfigManager->getInt("input:scroll_button"); + + libinput_device_config_scroll_set_button(LIBINPUTDEV, SCROLLBUTTON == 0 ? libinput_device_config_scroll_get_default_button(LIBINPUTDEV) : SCROLLBUTTON); Debug::log(LOG, "Applied config to mouse %s, sens %.2f", m.name.c_str(), LIBINPUTSENS); } |
