Skip to content

Commit

Permalink
Merge pull request #80 from vainiovano/main
Browse files Browse the repository at this point in the history
Don't set the evdev autorepeat rate
  • Loading branch information
Shinyzenith authored Mar 6, 2022
2 parents b98470b + e8354a4 commit c36bd28
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 c36bd28

Please sign in to comment.