Use natural scroll only for the trackpad

This commit is contained in:
2023-09-17 21:10:26 +02:00
parent a761131af3
commit 0e9ccaa2ef
4 changed files with 30 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
From b4eb343faff1ff15dd5d70a1f317dca201c5e37c Mon Sep 17 00:00:00 2001
From: Nikita Ivanov <nikita.vyach.ivanov@gmail.com>
Date: Sun, 21 May 2023 17:40:15 +0200
Subject: [PATCH] Set natural scrolling only for trackpads
---
dwl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dwl.c b/dwl.c
index b7436bb4f..8db928292 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1029,10 +1029,10 @@ createpointer(struct wlr_pointer *pointer)
libinput_device_config_tap_set_drag_enabled(libinput_device, tap_and_drag);
libinput_device_config_tap_set_drag_lock_enabled(libinput_device, drag_lock);
libinput_device_config_tap_set_button_map(libinput_device, button_map);
- }
- if (libinput_device_config_scroll_has_natural_scroll(libinput_device))
- libinput_device_config_scroll_set_natural_scroll_enabled(libinput_device, natural_scrolling);
+ if (libinput_device_config_scroll_has_natural_scroll(libinput_device))
+ libinput_device_config_scroll_set_natural_scroll_enabled(libinput_device, natural_scrolling);
+ }
if (libinput_device_config_dwt_is_available(libinput_device))
libinput_device_config_dwt_set_enabled(libinput_device, disable_while_typing);
+1 -1
View File
@@ -63,7 +63,7 @@ static const MonitorRule monrules[] = {
/* keyboard */
static const struct xkb_rule_names xkb_rules = {
/* can specify fields: rules, model, layout, variant, options */
.options = "caps:swapescape",
.options = "caps:escape",
};
static const int repeat_rate = 25;
+1
View File
@@ -373,6 +373,7 @@ return {
typescriptreact = { { "prettierd", "prettier" } },
css = { { "prettierd", "prettier" } },
html = { { "prettierd", "prettier" } },
sql = { "pg_format" },
},
}
},
+1
View File
@@ -37,6 +37,7 @@ in {
../dwl_patches/movestack.patch
../dwl_patches/gdk_monitors_status.patch
../dwl_patches/rotatetags.patch
../dwl_patches/naturalscrolltrackpad.patch
];
});