feat: add option to disable trackpad

This commit is contained in:
DreamMaoMao 2025-07-09 18:21:17 +08:00
parent 7f314254f3
commit dadbccbac0
4 changed files with 12 additions and 0 deletions

View file

@ -2961,6 +2961,11 @@ void createpointer(struct wlr_pointer *pointer) {
if (wlr_input_device_is_libinput(&pointer->base) &&
(device = wlr_libinput_get_device_handle(&pointer->base))) {
if (libinput_device_config_tap_get_finger_count(device) &&
disable_trackpad) {
return;
}
if (libinput_device_config_tap_get_finger_count(device)) {
libinput_device_config_tap_set_enabled(device, tap_to_click);
libinput_device_config_tap_set_drag_enabled(device, tap_and_drag);