anvil: set saner values for key repeat rate

This commit is contained in:
Victor Berger 2020-04-21 16:31:33 +02:00 committed by Victor Berger
parent 27a73888a8
commit 1736db27b4
3 changed files with 4 additions and 4 deletions

View File

@ -186,7 +186,7 @@ pub fn run_udev(mut display: Display, mut event_loop: EventLoop<AnvilState>, log
*cursor_status.lock().unwrap() = new_status; *cursor_status.lock().unwrap() = new_status;
}); });
let keyboard = w_seat let keyboard = w_seat
.add_keyboard(XkbConfig::default(), 1000, 500, |seat, focus| { .add_keyboard(XkbConfig::default(), 200, 25, |seat, focus| {
set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client())) set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client()))
}) })
.expect("Failed to initialize the keyboard"); .expect("Failed to initialize the keyboard");

View File

@ -101,7 +101,7 @@ pub fn run_winit(
}); });
let keyboard = seat let keyboard = seat
.add_keyboard(XkbConfig::default(), 1000, 500, |seat, focus| { .add_keyboard(XkbConfig::default(), 200, 25, |seat, focus| {
set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client())) set_data_device_focus(seat, focus.and_then(|s| s.as_ref().client()))
}) })
.expect("Failed to initialize the keyboard"); .expect("Failed to initialize the keyboard");

View File

@ -263,8 +263,8 @@ impl Seat {
/// variant: "nodeadkeys", /// variant: "nodeadkeys",
/// ..XkbConfig::default() /// ..XkbConfig::default()
/// }, /// },
/// 1000, /// 200,
/// 500, /// 25,
/// |seat, focus| { /// |seat, focus| {
/// /* This closure is called whenever the keyboard focus /// /* This closure is called whenever the keyboard focus
/// * changes, with the new focus as argument */ /// * changes, with the new focus as argument */