diff options
| author | la .uetcis <weitcis@pm.me> | 2024-03-13 21:26:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-13 21:26:03 -0700 |
| commit | cc83ff008d7500f38bce4e75c2dbcdfc1621cac4 (patch) | |
| tree | b3f271eab4402c0b59d1efb01b988a87a2b1f129 /src | |
| parent | ba4e7481c3be18c3ec0faeca03ab44a1b49e75bf (diff) | |
| download | niri-cc83ff008d7500f38bce4e75c2dbcdfc1621cac4.tar.gz niri-cc83ff008d7500f38bce4e75c2dbcdfc1621cac4.tar.bz2 niri-cc83ff008d7500f38bce4e75c2dbcdfc1621cac4.zip | |
Add `clickfinger` in touchpad config (#256)
* Add clickfinger in touchpad config
* Change `clickfinger` to `click-method`
* Change `bottom_areas` to `button_areas`
* Change button_areas to button-areas
For consistency.
* Reorder click methods in error message
The most usual one comes first.
* default-config: Move click-method down
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/input.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs index 715d39c8..7f3e6fa7 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1774,6 +1774,12 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input:: } else if let Some(default) = device.config_tap_default_button_map() { let _ = device.config_tap_set_button_map(default); } + + if let Some(method) = c.click_method { + let _ = device.config_click_set_method(method.into()); + } else if let Some(default) = device.config_click_default_method() { + let _ = device.config_click_set_method(default); + } } // This is how Mutter tells apart mice. |
