revive naturalscrolltrackpad.patch

This commit is contained in:
neuromagus 2024-01-07 02:24:30 +03:00
parent 375178be4f
commit 4f9b710720

View File

@ -0,0 +1,31 @@
From e6d6c4fb6a55baffe15ad9127901feb1e4d8a9df Mon Sep 17 00:00:00 2001
From: neuromagus <neuromagus@mail.ru>
Date: Sun, 7 Jan 2024 02:17:55 +0300
Subject: [PATCH] added naturalscrolltrackpad patch
---
dwl.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dwl.c b/dwl.c
index 4d19357..1b747c3 100644
--- a/dwl.c
+++ b/dwl.c
@@ -974,11 +974,9 @@ 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 (libinput_device_config_scroll_has_natural_scroll(device))
- libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
-
+ if (libinput_device_config_scroll_has_natural_scroll(device))
+ libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
+ }
if (libinput_device_config_dwt_is_available(device))
libinput_device_config_dwt_set_enabled(device, disable_while_typing);
--
2.43.0