Add natural scroll touchpad patch

This commit is contained in:
Sravan Balaji
2024-09-21 08:22:10 -04:00
parent d29062d6bf
commit 31dfbcf09b
5 changed files with 46 additions and 2 deletions

6
dwl.c
View File

@@ -1187,10 +1187,16 @@ createpointer(struct wlr_pointer *pointer)
libinput_device_config_tap_set_drag_enabled(device, tap_and_drag);
libinput_device_config_tap_set_drag_lock_enabled(device, drag_lock);
libinput_device_config_tap_set_button_map(device, button_map);
#if NATURALSCROLLTRACKPAD_PATCH
if (libinput_device_config_scroll_has_natural_scroll(device))
libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
#endif // NATURALSCROLLTRACKPAD_PATCH
}
#if ! NATURALSCROLLTRACKPAD_PATCH
if (libinput_device_config_scroll_has_natural_scroll(device))
libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
#endif // ! NATURALSCROLLTRACKPAD_PATCH
if (libinput_device_config_dwt_is_available(device))
libinput_device_config_dwt_set_enabled(device, disable_while_typing);