mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-08 12:14:50 +00:00
Update naturalscrolltrackpad patch
This commit is contained in:
parent
2eda9f1f5f
commit
e4b2e9112c
@ -1,10 +1,14 @@
|
|||||||
### Description
|
### Description
|
||||||
Set natural scrolling only for trackpads.
|
|
||||||
|
Set natural scrolling only for trackpads. Without this patch, setting
|
||||||
|
`natural_scrolling` to 1 in `config.h` results in a regular mouse wheel having
|
||||||
|
natural scrolling enabled as well.
|
||||||
|
|
||||||
### Download
|
### Download
|
||||||
- [git branch](https://codeberg.org/neuromagus/dwl/src/branch/naturalscrolltrackpad)
|
|
||||||
- [2024-01-06](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/naturalscrolltrackpad/naturalscrolltrackpad.patch)
|
- [0.7](/dwl/dwl-patches/raw/branch/main/patches/naturalscrolltrackpad/naturalscrolltrackpad.patch)
|
||||||
|
|
||||||
### Authors
|
### Authors
|
||||||
|
|
||||||
|
- Nikita Ivanov ([codeberg][codeberg]) ([GitHub][github])
|
||||||
- [Neuromagus](https://codeberg.org/neuromagus)
|
- [Neuromagus](https://codeberg.org/neuromagus)
|
||||||
- [Nikita Ivanov](https://github.com/NikitaIvanovV)
|
|
||||||
|
@ -1,27 +1,30 @@
|
|||||||
From 8b523453aefdc9d2920c8f9a52de009da251fbb0 Mon Sep 17 00:00:00 2001
|
From 63f38e7ccda8067a0558a6e81baad89ffbba9d6a Mon Sep 17 00:00:00 2001
|
||||||
From: neuromagus <neuromagus@mail.ru>
|
From: Nikita Ivanov <nikita.vyach.ivanov@gmail.com>
|
||||||
Date: Sun, 7 Jan 2024 05:11:24 +0300
|
Date: Sat, 8 Feb 2025 16:31:09 +0100
|
||||||
Subject: [PATCH] apply patch naturalscrolltrackpad
|
Subject: [PATCH] Set natural scrolling only for trackpads
|
||||||
|
|
||||||
---
|
---
|
||||||
dwl.c | 5 ++---
|
dwl.c | 6 +++---
|
||||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/dwl.c b/dwl.c
|
diff --git a/dwl.c b/dwl.c
|
||||||
index 4d19357..26f394b 100644
|
index def2562..f6bb544 100644
|
||||||
--- a/dwl.c
|
--- a/dwl.c
|
||||||
+++ b/dwl.c
|
+++ b/dwl.c
|
||||||
@@ -974,11 +974,10 @@ createpointer(struct wlr_pointer *pointer)
|
@@ -1085,10 +1085,10 @@ createpointer(struct wlr_pointer *pointer)
|
||||||
libinput_device_config_tap_set_drag_enabled(device, tap_and_drag);
|
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_drag_lock_enabled(device, drag_lock);
|
||||||
libinput_device_config_tap_set_button_map(device, button_map);
|
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))
|
- if (libinput_device_config_scroll_has_natural_scroll(device))
|
||||||
- libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
|
- 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))
|
if (libinput_device_config_dwt_is_available(device))
|
||||||
libinput_device_config_dwt_set_enabled(device, disable_while_typing);
|
libinput_device_config_dwt_set_enabled(device, disable_while_typing);
|
||||||
|
--
|
||||||
|
2.48.1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user