Add tablet option map-to-focused-output

This commit is contained in:
Benjamin Bäumler
2026-01-23 18:28:03 +01:00
committed by Ivan Molodetskikh
parent f4ebbc8017
commit 9e5716a9db
4 changed files with 15 additions and 2 deletions
+2
View File
@@ -364,6 +364,8 @@ pub struct Tablet {
#[knuffel(child, unwrap(argument))]
pub map_to_output: Option<String>,
#[knuffel(child)]
pub map_to_focused_output: bool,
#[knuffel(child)]
pub left_handed: bool,
}
+2
View File
@@ -705,6 +705,7 @@ mod tests {
tablet {
map-to-output "eDP-1"
map-to-focused-output
calibration-matrix 1.0 2.0 3.0 \
4.0 5.0 6.0
}
@@ -1097,6 +1098,7 @@ mod tests {
map_to_output: Some(
"eDP-1",
),
map_to_focused_output: true,
left_handed: false,
},
touch: Touch {