mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-27 01:40:22 -05:00
feat: add option to disable trackpad
This commit is contained in:
parent
7196ec80c0
commit
5fa406bb0d
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