From 741bee461cbdaf0236eaa55dc86dc84b01613128 Mon Sep 17 00:00:00 2001 From: FluxTape Date: Mon, 26 Feb 2024 18:47:46 +0100 Subject: Implement warp-mouse-to-focus --- niri-config/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'niri-config/src') diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index cad39c66..2df97cef 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -69,6 +69,8 @@ pub struct Input { pub touch: Touch, #[knuffel(child)] pub disable_power_key_handling: bool, + #[knuffel(child)] + pub warp_mouse_to_focus: bool, } #[derive(knuffel::Decode, Debug, Default, PartialEq, Eq)] @@ -1592,6 +1594,8 @@ mod tests { } disable-power-key-handling + + warp-mouse-to-focus } output "eDP-1" { @@ -1731,6 +1735,7 @@ mod tests { map_to_output: Some("eDP-1".to_owned()), }, disable_power_key_handling: true, + warp_mouse_to_focus: true, }, outputs: vec![Output { off: false, -- cgit