aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorSami Liedes <[email protected]>2024-08-18 10:14:42 +0300
committerGitHub <[email protected]>2024-08-18 08:14:42 +0100
commitb2a18aa80a29ecf400ae1e8c964d4313f7223bf5 (patch)
tree800d8396438289c901dfaff6a93333a156e312d8 /src/managers/input/InputManager.cpp
parentd21a6b12b8983bba8745a62fd595a1dbee882012 (diff)
downloadHyprland-b2a18aa80a29ecf400ae1e8c964d4313f7223bf5.tar.gz
Hyprland-b2a18aa80a29ecf400ae1e8c964d4313f7223bf5.zip
input: Fix disabling tap-to-click (#7304)
* Allow disabling tap-to-click * Style fix
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 069cdddb..e5f921a2 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1107,8 +1107,9 @@ void CInputManager::setPointerConfigs() {
libinput_device_config_tap_set_drag_lock_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_DRAG_LOCK_ENABLED);
if (libinput_device_config_tap_get_finger_count(LIBINPUTDEV)) // this is for tapping (like on a laptop)
- if (g_pConfigManager->getDeviceInt(devname, "tap-to-click", "input:touchpad:tap-to-click") == 1)
- libinput_device_config_tap_set_enabled(LIBINPUTDEV, LIBINPUT_CONFIG_TAP_ENABLED);
+ libinput_device_config_tap_set_enabled(LIBINPUTDEV,
+ g_pConfigManager->getDeviceInt(devname, "tap-to-click", "input:touchpad:tap-to-click") == 1 ? LIBINPUT_CONFIG_TAP_ENABLED :
+ LIBINPUT_CONFIG_TAP_DISABLED);
if (libinput_device_config_scroll_has_natural_scroll(LIBINPUTDEV)) {