feat: add option to disable trackpad
This commit is contained in:
@@ -3043,6 +3043,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);
|
||||
|
||||
Reference in New Issue
Block a user