From e8354a42da910d626ac453129fb1fa7208157803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A4in=C3=B6=20M=C3=A4kel=C3=A4?= Date: Sun, 6 Mar 2022 17:48:09 +0200 Subject: [PATCH] Don't set the evdev autorepeat rate swhkd ignores autorepeat events, so disabling autorepeat isn't needed. --- src/daemon.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon.rs b/src/daemon.rs index a89a807..c1551be 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -1,5 +1,5 @@ use clap::{arg, Command}; -use evdev::{AttributeSet, AutoRepeat, Device, InputEventKind, Key}; +use evdev::{AttributeSet, Device, InputEventKind, Key}; use nix::unistd::{Group, Uid}; use signal_hook_tokio::Signals; use std::{ @@ -165,7 +165,6 @@ async fn main() -> Result<(), Box> { for (i, mut device) in keyboard_devices.into_iter().enumerate() { let _ = device.grab(); - let _ = device.update_auto_repeat(&AutoRepeat { delay: 0, period: 0 }); keyboard_stream_map.insert(i, device.into_event_stream()?); keyboard_states.push(KeyboardState::new()); }