From 0ac3bef72473c619194514d01ca55f2ed8c617c3 Mon Sep 17 00:00:00 2001 From: Ufuk Ustali <93888971+UfukUstali@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:47:15 +0200 Subject: input: support configuring drag_3fg from libinput (#10631) --- src/managers/input/InputManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/managers/input/InputManager.cpp') 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(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(g_pConfigManager->getDeviceInt(devname, "disable_while_typing", "input:touchpad:disable_while_typing") != 0); -- cgit v1.2.3