mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user