Skip to content

Commit

Permalink
Don't set the evdev autorepeat rate
Browse files Browse the repository at this point in the history
swhkd ignores autorepeat events, so disabling autorepeat isn't needed.
  • Loading branch information
vainiovano committed Mar 6, 2022
1 parent b98470b commit e8354a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/daemon.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down Expand Up @@ -165,7 +165,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

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());
}
Expand Down

0 comments on commit e8354a4

Please sign in to comment.