From b46b92611c937ce77062a6496c4018c4d0cfc15f Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 23 Jan 2024 09:23:10 -0800 Subject: [PATCH] Change keyboard repeat delay from 200ms to 600ms This matches Sway, and seems to make it harder to accidentally paste text twice. Perhaps this should be configurable in some way (not sure how it's usually handled). But this is probably a better default. --- src/input/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 60d1574a..ca10a4ed 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -201,12 +201,12 @@ pub fn add_seat( // So instead of doing the right thing (and initialize these capabilities as matching // devices appear), we have to surrender to reality and just always expose a keyboard and pointer. let conf = config.xkb_config(); - if let Err(err) = seat.add_keyboard(xkb_config_to_wl(&conf), 200, 25) { + if let Err(err) = seat.add_keyboard(xkb_config_to_wl(&conf), 600, 25) { warn!( ?err, "Failed to load provided xkb config. Trying default...", ); - seat.add_keyboard(XkbConfig::default(), 200, 25) + seat.add_keyboard(XkbConfig::default(), 600, 25) .expect("Failed to load xkb configuration files"); } seat.add_pointer();