summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorUfuk Ustali <93888971+UfukUstali@users.noreply.github.com>2025-06-06 16:47:15 +0200
committerGitHub <noreply@github.com>2025-06-06 15:47:15 +0100
commit0ac3bef72473c619194514d01ca55f2ed8c617c3 (patch)
tree136d52f5f02bd2bfc820ac703a987cdce929d4e8 /src/managers/input/InputManager.cpp
parent456c820d52263579e4afdc3429fdaecab12f37a5 (diff)
input: support configuring drag_3fg from libinput (#10631)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 70f92023..007aaec0 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1252,6 +1252,11 @@ void CInputManager::setPointerConfigs() {
libinput_device_config_scroll_set_natural_scroll_enabled(LIBINPUTDEV, g_pConfigManager->getDeviceInt(devname, "natural_scroll", "input:natural_scroll"));
}
+ if (libinput_device_config_3fg_drag_get_finger_count(LIBINPUTDEV) >= 3) {
+ const auto DRAG_3FG_STATE = static_cast<libinput_config_3fg_drag_state>(g_pConfigManager->getDeviceInt(devname, "drag_3fg", "input:touchpad:drag_3fg"));
+ libinput_device_config_3fg_drag_set_enabled(LIBINPUTDEV, DRAG_3FG_STATE);
+ }
+
if (libinput_device_config_dwt_is_available(LIBINPUTDEV)) {
const auto DWT =
static_cast<enum libinput_config_dwt_state>(g_pConfigManager->getDeviceInt(devname, "disable_while_typing", "input:touchpad:disable_while_typing") != 0);