aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input/mod.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 8bf94d15..a36ea62b 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -2232,6 +2232,12 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
let _ = device.config_accel_set_profile(default);
}
+ if let Some(method) = c.scroll_method {
+ let _ = device.config_scroll_set_method(method.into());
+ } else if let Some(default) = device.config_scroll_default_method() {
+ let _ = device.config_scroll_set_method(default);
+ }
+
if let Some(tap_button_map) = c.tap_button_map {
let _ = device.config_tap_set_button_map(tap_button_map.into());
} else if let Some(default) = device.config_tap_default_button_map() {
@@ -2275,6 +2281,12 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
} else if let Some(default) = device.config_accel_default_profile() {
let _ = device.config_accel_set_profile(default);
}
+
+ if let Some(method) = c.scroll_method {
+ let _ = device.config_scroll_set_method(method.into());
+ } else if let Some(default) = device.config_scroll_default_method() {
+ let _ = device.config_scroll_set_method(default);
+ }
}
if is_trackpoint {
@@ -2287,6 +2299,12 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
} else if let Some(default) = device.config_accel_default_profile() {
let _ = device.config_accel_set_profile(default);
}
+
+ if let Some(method) = c.scroll_method {
+ let _ = device.config_scroll_set_method(method.into());
+ } else if let Some(default) = device.config_scroll_default_method() {
+ let _ = device.config_scroll_set_method(default);
+ }
}
let is_tablet = device.has_capability(input::DeviceCapability::TabletTool);