diff options
| author | Szybet <53944559+Szybet@users.noreply.github.com> | 2025-09-30 17:08:03 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-02 10:27:09 +0300 |
| commit | 03c564736ae96de01de1aecd9e941ab112ea2af8 (patch) | |
| tree | 81f8ca0e5605efc4711c32ce330f6789cac12912 /niri-config/src | |
| parent | 1b41ef146d7ae73a6686aeb2454af5965976b271 (diff) | |
| download | niri-03c564736ae96de01de1aecd9e941ab112ea2af8.tar.gz niri-03c564736ae96de01de1aecd9e941ab112ea2af8.tar.bz2 niri-03c564736ae96de01de1aecd9e941ab112ea2af8.zip | |
Support calibration-matrix in touch input config
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/input.rs | 2 | ||||
| -rw-r--r-- | niri-config/src/lib.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/niri-config/src/input.rs b/niri-config/src/input.rs index cf3df973..12af80ae 100644 --- a/niri-config/src/input.rs +++ b/niri-config/src/input.rs @@ -371,6 +371,8 @@ pub struct Tablet { pub struct Touch { #[knuffel(child)] pub off: bool, + #[knuffel(child, unwrap(arguments))] + pub calibration_matrix: Option<Vec<f32>>, #[knuffel(child, unwrap(argument))] pub map_to_output: Option<String>, } diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 81971cff..eb6d48b3 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -993,6 +993,7 @@ mod tests { }, touch: Touch { off: false, + calibration_matrix: None, map_to_output: Some( "eDP-1", ), |
