diff options
| author | Alex David <alexdavid@users.noreply.github.com> | 2025-03-01 23:01:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-02 10:01:34 +0300 |
| commit | d6e736aaf01b234e62e330e41135f47fe076a6d4 (patch) | |
| tree | 591f253aff9564a569deec8dc08e68e0e7c7094c /niri-config/src | |
| parent | 36b28d9b96107441e3f8502a61f598fb666ec492 (diff) | |
| download | niri-d6e736aaf01b234e62e330e41135f47fe076a6d4.tar.gz niri-d6e736aaf01b234e62e330e41135f47fe076a6d4.tar.bz2 niri-d6e736aaf01b234e62e330e41135f47fe076a6d4.zip | |
Allow disabling tap-and-drag (#1107)
* Allow disabling tap-and-drag
Similar to https://github.com/YaLTeR/niri/pull/1088, this adds a new
touchpad `drag` configuration option that configures tap-and-drag
behavior.
Currently tap-and-drag is always enabled when the `tap` setting is
enabled, but other compositors allow setting this separately.
* Update wiki/Configuration:-Input.md
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index fc5867aa..75fc48d1 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -185,6 +185,8 @@ pub struct Touchpad { pub dwt: bool, #[knuffel(child)] pub dwtp: bool, + #[knuffel(child, unwrap(argument))] + pub drag: Option<bool>, #[knuffel(child)] pub drag_lock: bool, #[knuffel(child)] @@ -3553,6 +3555,7 @@ mod tests { tap dwt dwtp + drag true click-method "clickfinger" accel-speed 0.2 accel-profile "flat" @@ -3811,6 +3814,9 @@ mod tests { tap: true, dwt: true, dwtp: true, + drag: Some( + true, + ), drag_lock: false, natural_scroll: false, click_method: Some( |
