mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-10-27 18:24:26 +00:00
naturalscrollfix: 0.7
This commit is contained in:
parent
214d0e400d
commit
e047776bd5
8
patches/naturalscrollfix/README.md
Normal file
8
patches/naturalscrollfix/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
### Description
|
||||||
|
fix natural_scrolling option to only affect trackpad & ignore mouse.
|
||||||
|
|
||||||
|
### Download
|
||||||
|
- [0.7](/dwl/dwl-patches/raw/branch/main/patches/naturalscrollfix/naturalscrollfix-0.7.patch)
|
||||||
|
|
||||||
|
### Authors
|
||||||
|
- [ahmadinne](https://codeberg.org/ahmadinne)
|
||||||
44
patches/naturalscrollfix/naturalscrollfix-0.7.patch
Normal file
44
patches/naturalscrollfix/naturalscrollfix-0.7.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
From a68b6dd1e410e50a462cead653ac23cde42419bb Mon Sep 17 00:00:00 2001
|
||||||
|
From: ahmadinne <fikri.mny@gmail.com>
|
||||||
|
Date: Fri, 15 Aug 2025 18:21:58 +0700
|
||||||
|
Subject: [PATCH] creating new patch: naturalscrollfix
|
||||||
|
|
||||||
|
---
|
||||||
|
dwl.c | 13 ++++---------
|
||||||
|
1 file changed, 4 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/dwl.c b/dwl.c
|
||||||
|
index c717c1d..3f4d3b0 100644
|
||||||
|
--- a/dwl.c
|
||||||
|
+++ b/dwl.c
|
||||||
|
@@ -1087,11 +1087,11 @@ 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);
|
||||||
|
+ }
|
||||||
|
+ } else {
|
||||||
|
if (libinput_device_config_dwt_is_available(device))
|
||||||
|
libinput_device_config_dwt_set_enabled(device, disable_while_typing);
|
||||||
|
|
||||||
|
@@ -1109,11 +1109,6 @@ createpointer(struct wlr_pointer *pointer)
|
||||||
|
|
||||||
|
if (libinput_device_config_send_events_get_modes(device))
|
||||||
|
libinput_device_config_send_events_set_mode(device, send_events_mode);
|
||||||
|
-
|
||||||
|
- if (libinput_device_config_accel_is_available(device)) {
|
||||||
|
- libinput_device_config_accel_set_profile(device, accel_profile);
|
||||||
|
- libinput_device_config_accel_set_speed(device, accel_speed);
|
||||||
|
- }
|
||||||
|
}
|
||||||
|
|
||||||
|
wlr_cursor_attach_input_device(cursor, &pointer->base);
|
||||||
|
--
|
||||||
|
2.50.1
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user