This setting does not otherwise seem permanently configurable yet.
From 56dc66ccae72a6965d52e892f40dbede823b6159 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg <stapelb...@google.com> Date: Thu, 26 Mar 2020 21:53:58 +0100 Subject: [PATCH] add -defaultRepeatDelay and -defaultRepeatInterval flags
This setting does not otherwise seem permanently configurable yet. Signed-off-by: Michael Stapelberg <stapelb...@google.com> --- hw/xfree86/common/xf86Init.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index e6fb11398..388b4356e 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -912,6 +912,9 @@ xf86CheckPrivs(const char *option, const char *arg) * */ +extern int XkbDfltRepeatDelay; +extern int XkbDfltRepeatInterval; + /* ARGSUSED */ int ddxProcessArgument(int argc, char **argv, int i) @@ -1074,6 +1077,32 @@ ddxProcessArgument(int argc, char **argv, int i) return 0; } } + if (!strcmp(argv[i], "-defaultRepeatDelay")) { + int repeatDelay; + + CHECK_FOR_REQUIRED_ARGUMENT(); + if (sscanf(argv[++i], "%d", &repeatDelay) == 1) { + XkbDfltRepeatDelay = repeatDelay; + return 2; + } + else { + ErrorF("Invalid defaultRepeatDelay\n"); + return 0; + } + } + if (!strcmp(argv[i], "-defaultRepeatInterval")) { + int repeatInterval; + + CHECK_FOR_REQUIRED_ARGUMENT(); + if (sscanf(argv[++i], "%d", &repeatInterval) == 1) { + XkbDfltRepeatInterval = repeatInterval; + return 2; + } + else { + ErrorF("Invalid defaultRepeatInterval\n"); + return 0; + } + } if (!strcmp(argv[i], "-gamma") || !strcmp(argv[i], "-rgamma") || !strcmp(argv[i], "-ggamma") || !strcmp(argv[i], "-bgamma")) { double gamma; -- 2.25.1
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel