mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-08 13:29:56 -05:00
feat: add option to disable trackpad
This commit is contained in:
parent
7f314254f3
commit
dadbccbac0
4 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue