diff options
| author | TheOnlyMrCat <skylifegame@gmail.com> | 2022-12-22 23:05:26 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 12:05:26 +0000 |
| commit | 8c094b0eec7724c75dd4a1cd7d29b1ff3fe32d18 (patch) | |
| tree | 917239a4512163eed2a4a48a54298ee5a3aa6449 /src/managers/input/InputManager.cpp | |
| parent | eb9d06322928bbd5bc576dc15a869b0f833be48c (diff) | |
Make libinput tap-and-drag configurable (#1267)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 43fc66cf..beb4f30a 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -743,6 +743,11 @@ void CInputManager::setPointerConfigs() { Debug::log(WARN, "Scroll method unknown"); } + if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "tap-and-drag") : g_pConfigManager->getInt("input:touchpad:tap-and-drag")) == 0) + libinput_device_config_tap_set_drag_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_DRAG_DISABLED); + else + libinput_device_config_tap_set_drag_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_DRAG_ENABLED); + if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "drag_lock") : g_pConfigManager->getInt("input:touchpad:drag_lock")) == 0) libinput_device_config_tap_set_drag_lock_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_DRAG_LOCK_DISABLED); else |
